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_encoding | |
| 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_encoding')
| -rw-r--r-- | src/bin/pg_encoding/Makefile | 31 |
1 files changed, 18 insertions, 13 deletions
diff --git a/src/bin/pg_encoding/Makefile b/src/bin/pg_encoding/Makefile index 5db546a9cf..179a3f43da 100644 --- a/src/bin/pg_encoding/Makefile +++ b/src/bin/pg_encoding/Makefile @@ -1,37 +1,42 @@ #------------------------------------------------------------------------- # -# Makefile for bin/pg_encoding +# Makefile for src/bin/pg_encoding # -# Copyright (c) 1998, PostgreSQL development group +# Copyright (c) 1998, PostgreSQL Global Development Group # -# -# IDENTIFICATION -# $Header: /cvsroot/pgsql/src/bin/pg_encoding/Attic/Makefile,v 1.7 2000/05/29 05:45:44 tgl Exp $ +# $Header: /cvsroot/pgsql/src/bin/pg_encoding/Attic/Makefile,v 1.8 2000/06/27 00:31:17 petere Exp $ # #------------------------------------------------------------------------- -SRCDIR= ../.. -include $(SRCDIR)/Makefile.global +subdir = src/bin/pg_encoding +top_builddir = ../../.. +include ../../Makefile.global OBJS= pg_encoding.o -all: submake pg_encoding +all: submake pg_encoding$(X) -pg_encoding: $(OBJS) - $(CC) -o pg_encoding $(OBJS) $(LIBPQ) $(LDFLAGS) $(CFLAGS) +pg_encoding$(X): $(OBJS) + $(CC) -o $@ $(OBJS) $(LIBPQ) $(LDFLAGS) $(CFLAGS) .PHONY: submake submake: $(MAKE) -C $(LIBPQDIR) libpq.a -install: pg_encoding - $(INSTALL) $(INSTL_EXE_OPTS) pg_encoding$(X) $(BINDIR)/pg_encoding$(X) +install: all installdirs + $(INSTALL_PROGRAM) pg_encoding$(X) $(bindir)/pg_encoding$(X) + +installdirs: + $(mkinstalldirs) $(bindir) + +uninstall: + rm -f $(bindir)/pg_encoding$(X) depend dep: $(CC) -MM $(CFLAGS) *.c >depend -clean: +clean distclean maintainer-clean: rm -f pg_encoding$(X) pg_encoding.o ifeq (depend,$(wildcard depend)) |
