diff options
| author | Peter Eisentraut <peter_e@gmx.net> | 2000-06-27 00:32:06 +0000 |
|---|---|---|
| committer | Peter Eisentraut <peter_e@gmx.net> | 2000-06-27 00:32:06 +0000 |
| commit | 5bb8b62983799c8bb5ef2e578629dbd2705bbd52 (patch) | |
| tree | 75199eec2bcf58ab455f7adab52285580d97e4be /src/bin/pg_dump | |
| parent | ecef326850ab087d78f217f8d97008d3974cbd76 (diff) | |
| download | postgresql-5bb8b62983799c8bb5ef2e578629dbd2705bbd52.tar.gz | |
Makefile cleanup for bin and pl subtrees. They should now support
all the standard semantics. Also get rid of Makefile.in's on the
way and instead declare all variables in Makefile.global.
Diffstat (limited to 'src/bin/pg_dump')
| -rw-r--r-- | src/bin/pg_dump/Makefile | 51 | ||||
| -rw-r--r-- | src/bin/pg_dump/Makefile.in | 47 |
2 files changed, 51 insertions, 47 deletions
diff --git a/src/bin/pg_dump/Makefile b/src/bin/pg_dump/Makefile new file mode 100644 index 0000000000..cf621027cd --- /dev/null +++ b/src/bin/pg_dump/Makefile @@ -0,0 +1,51 @@ +#------------------------------------------------------------------------- +# +# Makefile for src/bin/pg_dump +# +# Copyright (c) 1994, Regents of the University of California +# +# $Header: /cvsroot/pgsql/src/bin/pg_dump/Makefile,v 1.15 2000/06/27 00:31:12 petere Exp $ +# +#------------------------------------------------------------------------- + +subdir = src/bin/pg_dump +top_builddir = ../../.. +include ../../Makefile.global + +OBJS= pg_dump.o common.o $(STRDUP) + +CFLAGS+= -I$(LIBPQDIR) + + +all: submake pg_dump$(X) + +pg_dump$(X): $(OBJS) $(LIBPQDIR)/libpq.a + $(CC) $(CFLAGS) -o $@ $(OBJS) $(LIBPQ) $(LDFLAGS) + +../../utils/strdup.o: + $(MAKE) -C ../../utils strdup.o + +.PHONY: submake +submake: + $(MAKE) -C $(LIBPQDIR) libpq.a + +install: all installdirs + $(INSTALL_PROGRAM) pg_dump$(X) $(bindir)/pg_dump$(X) + $(INSTALL_SCRIPT) pg_dumpall $(bindir)/pg_dumpall + $(INSTALL_SCRIPT) pg_upgrade $(bindir)/pg_upgrade + +installdirs: + $(mkinstalldirs) $(bindir) + +uninstall: + rm -f $(addprefix $(bindir)/, pg_dump$(X) pg_dumpall pg_upgrade) + +depend dep: + $(CC) -MM $(CFLAGS) *.c >depend + +clean distclean maintainer-clean: + rm -f pg_dump$(X) $(OBJS) + +ifeq (depend,$(wildcard depend)) +include depend +endif diff --git a/src/bin/pg_dump/Makefile.in b/src/bin/pg_dump/Makefile.in deleted file mode 100644 index aa7ed69555..0000000000 --- a/src/bin/pg_dump/Makefile.in +++ /dev/null @@ -1,47 +0,0 @@ -#------------------------------------------------------------------------- -# -# Makefile.inc-- -# Makefile for bin/pg_dump -# -# Copyright (c) 1994, Regents of the University of California -# -# -# IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_dump/Attic/Makefile.in,v 1.14 2000/06/17 00:09:44 petere Exp $ -# -#------------------------------------------------------------------------- - -SRCDIR= ../.. -include ../../Makefile.global - -OBJS= pg_dump.o common.o @STRDUP@ - -CFLAGS+= -I$(LIBPQDIR) - - -all: submake pg_dump - -pg_dump: $(OBJS) $(LIBPQDIR)/libpq.a - $(CC) $(CFLAGS) -o pg_dump $(OBJS) $(LIBPQ) $(LDFLAGS) - -../../utils/strdup.o: - $(MAKE) -C ../../utils strdup.o - -.PHONY: submake -submake: - $(MAKE) -C $(LIBPQDIR) libpq.a - -install: pg_dump - $(INSTALL) $(INSTL_EXE_OPTS) pg_dump$(X) $(BINDIR)/pg_dump$(X) - $(INSTALL) $(INSTL_EXE_OPTS) pg_dumpall $(BINDIR)/pg_dumpall - $(INSTALL) $(INSTL_EXE_OPTS) pg_upgrade $(BINDIR)/pg_upgrade - -depend dep: - $(CC) -MM $(CFLAGS) *.c >depend - -clean: - rm -f pg_dump$(X) $(OBJS) - -ifeq (depend,$(wildcard depend)) -include depend -endif |
