Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 28 May 2009 14:08:48 +0200
changeset 37 85891f91096c
parent 33 56571d34d754
child 43 07afbd7a1567
permissions -rw-r--r--
enumerated types for irc.c The irc section gets an enumerated type for constant values. This makes the code more readable and less error prone. 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
	$(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 {} \;