]> granicus.if.org Git - postgresql/commitdiff
Fix distclean/maintainer-clean targets to remove top-level tmp_install dir.
authorTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 May 2015 22:48:05 +0000 (18:48 -0400)
committerTom Lane <tgl@sss.pgh.pa.us>
Wed, 13 May 2015 22:48:05 +0000 (18:48 -0400)
The top-level makefile removes tmp_install in its "clean" target, but the
distclean and maintainer-clean targets overlooked that (and they don't
simply invoke clean, because that would result in an extra tree traversal).

While at it, let's just make sure that removing GNUmakefile itself is the
very last step of the recipe.

GNUmakefile.in

index ba39bf13307e55d70bd2379dcfdb0a6d9acfc555..15fba9fce0a784f4eb29769b2c1bd7200eece717 100644 (file)
@@ -58,9 +58,10 @@ distclean maintainer-clean:
        $(MAKE) -C contrib $@
        $(MAKE) -C config $@
        $(MAKE) -C src $@
-       rm -f config.cache config.log config.status GNUmakefile
+       rm -rf tmp_install/
 # Garbage from autoconf:
        @rm -rf autom4te.cache/
+       rm -f config.cache config.log config.status GNUmakefile
 
 check check-tests installcheck installcheck-parallel installcheck-tests:
        $(MAKE) -C src/test/regress $@