Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Tue, 16 Feb 2010 23:38:02 +0100
changeset 45 535478a0f482
parent 43 07afbd7a1567
child 52 c9401e6a62cb
permissions -rw-r--r--
Prevent further segmentation faults in parse.c Some critical parts in parse.c depend on parseable data in message->user and message->email. These values will never be NULL and will never again result in a segmentation fault. committer: Markus Bröker <mbroeker@largo.homelinux.org>

MAKE=make --no-print-directory
CMAKE=cmake
RMDIR=rm -rf
RM=rm -f

all: build

build: build/Makefile
	@$(MAKE) -C build

prepare:
	@if [ ! -d build ]; then mkdir build; fi

build/Makefile: prepare
	cd build && $(CMAKE) ../src

.PHONY: distclean debclean prepare beauty

clean: build/Makefile
	@$(MAKE) -C build clean

deb: debclean
	dpkg-buildpackage -r

debclean:
	fakeroot debian/rules clean

distclean:
	$(RMDIR) build debian/mcbot
	$(RM) locale/de/LC_MESSAGES/mcbot.mo

install: build/Makefile
	$(MAKE) -C build install

beauty:
	find -name '*.[ch]' -exec indent {} \;
	find -name '*.[ch]' -exec eraser {} \;
	find -name '*~' -exec rm -f {} \;