]> granicus.if.org Git - postgresql/commitdiff
Force user to set PORTNAME. Remove NAMEDATALEN from CFLAGS (don't need it
authorBryan Henderson <bryanh@giraffe.netgate.net>
Mon, 21 Oct 1996 06:56:57 +0000 (06:56 +0000)
committerBryan Henderson <bryanh@giraffe.netgate.net>
Mon, 21 Oct 1996 06:56:57 +0000 (06:56 +0000)
there because it's in config.h, which is cleaner).

src/Makefile
src/Makefile.global

index 548af888db87ac2c0d46bcee2a8846a29268fc07..e1cfcd076fca09c7818db168e5da3dc9543f9ed4 100644 (file)
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Makefile,v 1.8 1996/10/19 06:33:52 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/Makefile,v 1.9 1996/10/21 06:56:55 bryanh Exp $
 #
 # NOTES
 #      objdir  - location of the objects and generated files (eg. obj)
@@ -26,6 +26,11 @@ ETAGS = etags
 XARGS = xargs
 
 .DEFAULT all:
+       @if test $(PORTNAME) = UNDEFINED; then \
+         echo You must set the PORTNAME value in Makefile.global before \
+              you can build Postgres. ;\
+         false ;\
+       fi
        $(MAKE) -C backend $@
        $(MAKE) -C libpq $@
 ifeq ($(HAVE_Cplusplus), true)
@@ -38,7 +43,6 @@ endif
 ifneq ($(wildcard $(MKDIR)/../../doc), )
        $(MAKE) -C ../doc $@
 endif
-       @-chown -R $(POSTGRESLOGIN) $(POSTGRESDIR) 2>/dev/null
        @if test $@. = all. -o $@. = .; then \
        echo All of Postgres95 is successfully made.  Ready to install. ;\
         fi
index 1b13f7076a92f3212ebf829dcf85362fa5a16f2c..9cbfe1ecc7173f8db0970c4cf29b4fa2c48cbda0 100644 (file)
@@ -7,7 +7,7 @@
 #
 #
 # IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.40 1996/10/19 06:33:55 scrappy Exp $
+#    $Header: /cvsroot/pgsql/src/Attic/Makefile.global,v 1.41 1996/10/21 06:56:57 bryanh Exp $
 #
 # NOTES
 #    This is seen by any Makefiles that include mk/postgres.mk. To
@@ -59,7 +59,7 @@
 #      until after this file is processed!
 #  make sure that you have no whitespaces after the PORTNAME setting
 #  or the makefiles can get confused
-PORTNAME=      BSD44_derived
+PORTNAME=      UNDEFINED
 
 # SRCDIR specifies where the source files are.
 SRCDIR=                /usr/local/postgres95/src
@@ -117,12 +117,13 @@ POSTPORT= 5432
 # 
 # NOTE also that databases with different NAMEDATALEN's cannot interoperate!
 #
+# THERE ARE REDUNDANT DEFINITIONS OF THESE VALUES IN config.h.
+# Don't change anything here without changing it there too.
+
 NAMEDATALEN = 32
 # OIDNAMELEN should be set to NAMEDATALEN + sizeof(Oid)
 OIDNAMELEN = 36
  
-CFLAGS+= -DNAMEDATALEN=$(NAMEDATALEN) -DOIDNAMELEN=$(OIDNAMELEN)
-
 ##############################################################################
 #
 # FEATURES