diff --git a/Makefile b/Makefile index 987a385..6ba55b6 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/src/Makefile b/src/Makefile index 241ad61..ae8bad9 100644 --- a/src/Makefile +++ b/src/Makefile @@ -20,3 +20,6 @@ match: match.c ${CC} -o $@ -DDEBUG=2 -DCMDTOOL -DTEST $< it: match + +clean: + rm -f $O