From 81526d9d4efbf7a3119cc323028801614ba27065 Mon Sep 17 00:00:00 2001 From: Pierre Habouzit Date: Fri, 10 Nov 2006 23:12:34 +0100 Subject: [PATCH] make the build system even better. Signed-off-by: Pierre Habouzit --- am/footer.mk | 7 ++++++- am/header.mk | 3 +++ madtty/{Makefile.in => Makefile.old} | 0 3 files changed, 9 insertions(+), 1 deletion(-) rename madtty/{Makefile.in => Makefile.old} (100%) 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 -- 2.20.1