]> granicus.if.org Git - postgresql/blobdiff - src/Makefile
Remove vestigial resolveUnknown arguments from transformSortClause etc.
[postgresql] / src / Makefile
index 66ddf2e2bf5a0888604288a509ccf034f4ef3eb3..b490c071382958e8f390872b99b302fe91c08e0b 100644 (file)
@@ -1,66 +1,84 @@
 #-------------------------------------------------------------------------
 #
-# Makefile.inc--
-#    Build and install postgres.
+# Makefile for src
 #
 # Copyright (c) 1994, Regents of the University of California
 #
-#
-# IDENTIFICATION
-#    $Header: /cvsroot/pgsql/src/Makefile,v 1.10 1996/11/11 13:51:20 bryanh Exp $
-#
-# NOTES
-#      objdir  - location of the objects and generated files (eg. obj)
+# src/Makefile
 #
 #-------------------------------------------------------------------------
 
-MKDIR=./mk
--include $(MKDIR)/../Makefile.global
+subdir = src
+top_builddir = ..
+include Makefile.global
+
+SUBDIRS = \
+       common \
+       port \
+       timezone \
+       backend \
+       backend/utils/mb/conversion_procs \
+       backend/snowball \
+       include \
+       interfaces \
+       backend/replication/libpqwalreceiver \
+       backend/replication/pgoutput \
+       fe_utils \
+       bin \
+       pl \
+       makefiles \
+       test/regress \
+       test/perl
+
+# There are too many interdependencies between the subdirectories, so
+# don't attempt parallel make here.
+.NOTPARALLEL:
+
+$(recurse)
+
+install: install-local
+
+install-local: installdirs-local
+       $(INSTALL_DATA) Makefile.global '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.global'
+       $(INSTALL_DATA) Makefile.port '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.port'
+       $(INSTALL_DATA) $(srcdir)/Makefile.shlib '$(DESTDIR)$(pgxsdir)/$(subdir)/Makefile.shlib'
+       $(INSTALL_DATA) $(srcdir)/nls-global.mk '$(DESTDIR)$(pgxsdir)/$(subdir)/nls-global.mk'
 
-FIND = find
-# assuming gnu tar and split here
-TAR  = tar
-SPLIT = split
+installdirs: installdirs-local
 
-ETAGS = etags
-XARGS = xargs
+installdirs-local:
+       $(MKDIR_P) '$(DESTDIR)$(pgxsdir)/$(subdir)'
 
-.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 utils $@
+uninstall: uninstall-local
+
+uninstall-local:
+       rm -f $(addprefix '$(DESTDIR)$(pgxsdir)/$(subdir)'/, Makefile.global Makefile.port Makefile.shlib nls-global.mk)
+
+distprep:
+       $(MAKE) -C test/isolation $@
+
+clean:
+       $(MAKE) -C test $@
+       $(MAKE) -C tutorial NO_PGXS=1 $@
+       $(MAKE) -C test/isolation $@
+       $(MAKE) -C test/thread $@
+
+distclean maintainer-clean:
+       $(MAKE) -C test $@
+       $(MAKE) -C tutorial NO_PGXS=1 $@
+       $(MAKE) -C test/isolation $@
+       $(MAKE) -C test/thread $@
+       rm -f Makefile.port Makefile.global
+
+coverage:
+       $(MAKE) -C timezone $@
        $(MAKE) -C backend $@
-       $(MAKE) -C libpq $@
-ifeq ($(HAVE_Cplusplus), true)
-       $(MAKE) -C libpq++ $@
-endif
-ifeq ($(USE_TCL), true)
-       $(MAKE) -C libpgtcl $@
-endif
+       $(MAKE) -C backend/utils/mb/conversion_procs $@
+       $(MAKE) -C backend/snowball $@
+       $(MAKE) -C interfaces $@
+       $(MAKE) -C backend/replication/libpqwalreceiver $@
        $(MAKE) -C bin $@
-ifneq ($(wildcard $(MKDIR)/../../doc), )
-       $(MAKE) -C ../doc $@
-endif
-       @if test $@. = all. -o $@. = .; then \
-       echo All of Postgres95 is successfully made.  Ready to install. ;\
-        fi
-
-TAGS:
-       rm -f TAGS; \
-       for i in backend libpq bin; do \
-         $(FIND) $$i -name '*.[chyl]' -print | $(XARGS) $(ETAGS) -a ; \
-       done
-
-# target to generate a backup tar file and split files that can be 
-# saved to 1.44M floppy
-BACKUP:
-       rm -f BACKUP.filelist BACKUP.tgz; \
-       $(FIND) . -not -path '*obj/*' -not -path '*data/*' -type f -print > BACKUP.filelist; \
-       $(TAR) --files-from BACKUP.filelist -c -z -v -f BACKUP.tgz
-       $(SPLIT) --bytes=1400k BACKUP.tgz pgBACKUP.     
-
-.PHONY: TAGS
-.PHONY: BACKUP
+       $(MAKE) -C pl $@
+
+
+.PHONY: install-local installdirs-local uninstall-local