From: Pierre Habouzit Date: Fri, 10 Nov 2006 22:12:34 +0000 (+0100) Subject: make the build system even better. X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=81526d9d4efbf7a3119cc323028801614ba27065;p=apps%2Fmadtty.git make the build system even better. Signed-off-by: Pierre Habouzit --- diff --git a/am/footer.mk b/am/footer.mk index 5b935b7..7a7d3b5 100644 --- a/am/footer.mk +++ b/am/footer.mk @@ -94,6 +94,11 @@ clean:: clobber distclean:: CLEAN_RECURSE= clobber distclean:: clean - $(RM) -r .objs* + $(RM) -r .objs* $(patsubst %.in,%,$(wildcard *.in)) + +ifeq (".","$(DEPTH)") +clobber distclean:: + $(RM) $(patsubst %.in,%,$(wildcard $(CONFDIR)/*.in)) +endif .PHONY: all check clean clobber distclean FORCE diff --git a/am/header.mk b/am/header.mk index 1309171..d541459 100644 --- a/am/header.mk +++ b/am/header.mk @@ -8,6 +8,9 @@ ifeq ("","$(DEPTH)") $(error you have to define DEPTH) endif +$(CONFDIR)/%.mk: + $(error you need to run ./configure !) + include $(CONFDIR)/vars.mk include $(CONFDIR)/cflags.mk diff --git a/madtty/Makefile.in b/madtty/Makefile.old similarity index 100% rename from madtty/Makefile.in rename to madtty/Makefile.old