From 138a16e7a760e4416e13a151b0e1c59a4cf87a17 Mon Sep 17 00:00:00 2001 From: "tg(x)" <*@tg-x.net> Date: Tue, 19 Apr 2011 22:52:08 +0200 Subject: [PATCH] Makefile improvements --- Makefile | 18 ++++++++++++++++++ src/Makefile | 3 +++ 2 files changed, 21 insertions(+) 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