Skip to content

Commit 9660710

Browse files
committed
Fix distclean/maintainer-clean targets to remove top-level tmp_install dir.
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.
1 parent 61f68e0 commit 9660710

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

GNUmakefile.in

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,10 @@ distclean maintainer-clean:
5858
$(MAKE) -C contrib $@
5959
$(MAKE) -C config $@
6060
$(MAKE) -C src $@
61-
rm -f config.cache config.log config.status GNUmakefile
61+
rm -rf tmp_install/
6262
# Garbage from autoconf:
6363
@rm -rf autom4te.cache/
64+
rm -f config.cache config.log config.status GNUmakefile
6465

6566
check check-tests installcheck installcheck-parallel installcheck-tests:
6667
$(MAKE) -C src/test/regress $@

0 commit comments

Comments
 (0)