Makefile
author Markus Bröker <mbroeker@largo.dyndns.tv>
Sat, 13 Nov 2010 08:14:04 +0100
changeset 58 500a5ea7fcb8
parent 53 ec1eec96e433
permissions -rw-r--r--
IPv6 Support for mcbot We initialize the socket functions with AF_UNSPEC and let the library fill in the proper values. Connects to IPv4 or IPv6. committer: Markus Bröker <mbroeker@largo.homelinux.org>

MAKE=make
CMAKE=cmake
RMDIR=rm -rf
RM=rm -f
INDENT=indent

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 {} \;