Minor makefile improvements
authorYann Dirson <ydirson@free.fr>
Mon, 16 Dec 2013 21:53:23 +0000 (22:53 +0100)
committerYann Dirson <ydirson@free.fr>
Mon, 16 Dec 2013 21:54:53 +0000 (22:54 +0100)
Makefile.in

index 7cc94d5..2ddcab5 100644 (file)
@@ -101,7 +101,7 @@ dist:
        tar -cf - --exclude .git --exclude $(DISTNAME) $(ROOT) | (cd $(DISTNAME) && tar -xf -)
        cd $(DISTNAME) && $(ROOT)/autogen.sh && $(ROOT)/configure
        cd $(DISTNAME)/doc && $(MAKE) info
-       cd $(DISTNAME) && make distclean
+       cd $(DISTNAME) && $(MAKE) distclean
        tar -zcf $(DISTNAME).tar.gz $(DISTNAME)
 
 #
@@ -115,6 +115,7 @@ DISTCLEANFILES = \
 
 distclean: clean
        rm -rf $(DISTCLEANFILES)
+       find -name '*~' | xargs rm
        cd $(BUILDROOT)/doc && $(MAKE) distclean
 
 #