Makefile improvements

This commit is contained in:
tg(x) 2011-04-19 22:52:08 +02:00
parent 15b1c906bf
commit 138a16e7a7
2 changed files with 21 additions and 0 deletions

View File

@ -1,4 +1,22 @@
.PHONY: doc
.PHONY: tests
default:
@/bin/echo -e "Usage:\n\tmake diet - compile with diet libc\n\tmake lib - compile with normal gnu libc\n\tmake tests\n\tmake doc"
lib:
make -C src lib
diet:
make -C src diet
tests:
make -C tests
doc:
doxygen
clean:
make -C src clean
make -C tests clean
rm -rf doc

View File

@ -20,3 +20,6 @@ match: match.c
${CC} -o $@ -DDEBUG=2 -DCMDTOOL -DTEST $<
it: match
clean:
rm -f $O