]> granicus.if.org Git - postgresql/blobdiff - Makefile
psql: Fix \ef, \sf tab completion
[postgresql] / Makefile
index c5eca7a9d2e925b713154068f278f4dd111233f9..c400854cd3d0274d07709ffe1cb01ae035b7e480 100644 (file)
--- a/Makefile
+++ b/Makefile
 # GNUmakefile won't exist yet, so we catch that case as well.
 
 
-all install clean dep depend distclean maintainer-clean:
-       @if ! [ -f GNUmakefile ] ; then \
-          echo "You need to run the \`configure' program first. See the file"; \
-          echo "\`INSTALL' for installation instructions." ; \
+# AIX make defaults to building *every* target of the first rule.  Start with
+# a single-target, empty rule to make the other targets non-default.
+all:
+
+all check install installdirs installcheck installcheck-parallel uninstall clean distclean maintainer-clean dist distcheck world check-world install-world installcheck-world:
+       @if [ ! -f GNUmakefile ] ; then \
+          echo "You need to run the 'configure' program first. See the file"; \
+          echo "'INSTALL' for installation instructions." ; \
           false ; \
         fi
        @IFS=':' ; \
         for dir in $$PATH; do \
           for prog in gmake gnumake make; do \
-            if [ -f $$dir/$$prog ] && ( $$dir/$$prog --version | grep GNU >/dev/null 2>&1 ) ; then \
+            if [ -f $$dir/$$prog ] && ( $$dir/$$prog -f /dev/null --version 2>/dev/null | grep GNU >/dev/null 2>&1 ) ; then \
               GMAKE=$$dir/$$prog; \
               break 2; \
             fi; \
@@ -29,6 +33,7 @@ all install clean dep depend distclean maintainer-clean:
        \
         if [ x"$${GMAKE+set}" = xset ]; then \
           echo "Using GNU make found at $${GMAKE}"; \
+          unset MAKEFLAGS; unset MAKELEVEL; \
           $${GMAKE} $@ ; \
         else \
           echo "You must use GNU make to build PostgreSQL." ; \