diff --git a/Makefile b/Makefile index c1366277df0b529343f83e7989d8fa49d573d995..46a11da7e4e6196c25a5fc2f7842b82e37e970b2 100644 --- a/Makefile +++ b/Makefile @@ -31,14 +31,23 @@ include $(SCRIPTDIR)/sub-depend.make .PHONY: clean clean: $(RM) $(GENERIC-CLEAN) - $(RM) -r $(INCLUDEDIR) - $(RM) -r $(LIBDIR) -for i in $(SUBDIRS); \ do \ [ -d $$i ] && { echo making clean in directory $$i; \ (cd $$i; $(MAKE) $(EXPORTS) clean) } \ done +distclean: clean + $(RM) $(GENERIC-DIST-CLEAN) + $(RM) -r $(INCLUDEDIR) + $(RM) -r $(LIBDIR) + -for i in $(SUBDIRS); \ + do \ + [ -d $$i ] && { echo making distclean in directory $$i; \ + (cd $$i; $(MAKE) $(EXPORTS) distclean) } \ + done + + depend: $(INCLUDEDIR) $(INCLUDEDIR)/m-config.h msg includes distribution: clean