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_passwd | |
| 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_passwd')
| -rw-r--r-- | src/bin/pg_passwd/Makefile | 31 |
1 files changed, 15 insertions, 16 deletions
diff --git a/src/bin/pg_passwd/Makefile b/src/bin/pg_passwd/Makefile index f6c15053c9..aef4f1a56a 100644 --- a/src/bin/pg_passwd/Makefile +++ b/src/bin/pg_passwd/Makefile @@ -1,31 +1,30 @@ -#------------------------------------------------------------------------- # -# Makefile -# Makefile for bin/pg_passwd -#------------------------------------------------------------------------- +# Makefile for src/bin/pg_passwd +# -SRCDIR= ../.. +subdir = src/bin/pg_passwd +top_builddir = ../../.. include ../../Makefile.global -OBJS= pg_passwd.o +all: pg_passwd$(X) -all: pg_passwd +pg_passwd$(X): pg_passwd.o + $(CC) $(CFLAGS) -o $@ $^ $(LDFLAGS) -pg_passwd: $(OBJS) - $(CC) $(CFLAGS) -o pg_passwd $(OBJS) $(LDFLAGS) +install: all installdirs + $(INSTALL_PROGRAM) pg_passwd$(X) $(bindir)/pg_passwd$(X) -install: pg_passwd - $(INSTALL) $(INSTL_EXE_OPTS) pg_passwd$(X) $(BINDIR)/pg_passwd$(X) +installdirs: + $(mkinstalldirs) $(bindir) -.PHONY: submake -submake: - $(MAKE) -C $(LIBPQDIR) libpq.a +uninstall: + rm -f $(bindir)/pg_passwd$(X) depend dep: $(CC) -MM $(CFLAGS) *.c >depend -clean: - rm -f pg_passwd$(X) $(OBJS) +clean distclean maintainer-clean: + rm -f pg_passwd$(X) pg_passwd.o ifeq (depend,$(wildcard depend)) include depend |
