Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Thu, 25 Dec 2008 19:55:07 +0100
changeset 31 bbcb8a3366b4
parent 30 eed9f710ba3b
child 33 56571d34d754
permissions -rw-r--r--
mcbot needs a proper system account mcbot used the nobody system account and changed some properties. This collides with the default selinux policiy and the new account mcbot solves this issue. 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 prepare beauty

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

distclean:
	$(RMDIR) build

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

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