Browse Source

Fix non-GNU makefiles for AIX make.

Invoking the Makefile without an explicit target was building every
possible target instead of just the "all" target.  Back-patch to 9.3
(all supported versions).
tags/REL_11_BETA1
Noah Misch 1 year ago
parent
commit
e21a556e13
2 changed files with 9 additions and 0 deletions
  1. 4
    0
      Makefile
  2. 5
    0
      src/test/regress/Makefile

+ 4
- 0
Makefile View File

@@ -11,6 +11,10 @@
11 11
 # GNUmakefile won't exist yet, so we catch that case as well.
12 12
 
13 13
 
14
+# AIX make defaults to building *every* target of the first rule.  Start with
15
+# a single-target, empty rule to make the other targets non-default.
16
+all:
17
+
14 18
 all check install installdirs installcheck installcheck-parallel uninstall clean distclean maintainer-clean dist distcheck world check-world install-world installcheck-world:
15 19
 	@if [ ! -f GNUmakefile ] ; then \
16 20
 	   echo "You need to run the 'configure' program first. See the file"; \

+ 5
- 0
src/test/regress/Makefile View File

@@ -7,6 +7,11 @@
7 7
 # GNU make uses a make file named "GNUmakefile" in preference to "Makefile"
8 8
 # if it exists.  Postgres is shipped with a "GNUmakefile".
9 9
 
10
+
11
+# AIX make defaults to building *every* target of the first rule.  Start with
12
+# a single-target, empty rule to make the other targets non-default.
13
+all:
14
+
10 15
 all install clean check installcheck:
11 16
 	@echo "You must use GNU make to use Postgres.  It may be installed"
12 17
 	@echo "on your system with the name 'gmake'."

Loading…
Cancel
Save