make the build system even better.
[apps/madtty.git] / am / footer.mk
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