make the build system even better.
authorPierre Habouzit <madcoder@debian.org>
Fri, 10 Nov 2006 22:12:34 +0000 (23:12 +0100)
committerPierre Habouzit <madcoder@debian.org>
Fri, 10 Nov 2006 22:12:34 +0000 (23:12 +0100)
Signed-off-by: Pierre Habouzit <madcoder@debian.org>
am/footer.mk
am/header.mk
madtty/Makefile.old [moved from madtty/Makefile.in with 100% similarity]

index 5b935b7..7a7d3b5 100644 (file)
@@ -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
index 1309171..d541459 100644 (file)
@@ -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
 
similarity index 100%
rename from madtty/Makefile.in
rename to madtty/Makefile.old