mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-05 21:13:24 +02:00
32 lines
854 B
Makefile
32 lines
854 B
Makefile
|
# $Header: /cvsroot/pgsql/src/bin/pg-config/Attic/Makefile,v 1.1 2000/08/26 13:08:16 petere Exp $
|
||
|
|
||
|
subdir = src/bin/pg-config
|
||
|
top_builddir = ../../..
|
||
|
include $(top_builddir)/src/Makefile.global
|
||
|
|
||
|
all: pg-config
|
||
|
|
||
|
pg-config: pg-config.sh $(top_builddir)/config.status $(top_builddir)/src/Makefile.global Makefile
|
||
|
rm -f $@ $@.tmp
|
||
|
configure=`sed -n '7s,^# [^ ]*configure *,,p' $(top_builddir)/config.status` && \
|
||
|
sed -e 's,@bindir@,$(bindir),g' \
|
||
|
-e 's,@includedir@,$(includedir),g' \
|
||
|
-e 's,@libdir@,$(libdir),g' \
|
||
|
-e "s,@configure@,$$configure,g" \
|
||
|
-e 's,@version@,$(VERSION),g' \
|
||
|
$< >$@.tmp
|
||
|
chmod a+x $@.tmp
|
||
|
mv $@.tmp $@
|
||
|
|
||
|
install: all installdirs
|
||
|
$(INSTALL_SCRIPT) pg-config $(bindir)/pg-config
|
||
|
|
||
|
installdirs:
|
||
|
$(mkinstalldirs) $(bindir)
|
||
|
|
||
|
uninstall:
|
||
|
rm -f $(bindir)/pg-config
|
||
|
|
||
|
clean distclean maintainer-clean:
|
||
|
rm -f pg-config
|