mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-09 19:59:35 +02:00
da06bc1d40
to parallel make, kind of resistent to corruption due to incomplete builds.
30 lines
815 B
Makefile
30 lines
815 B
Makefile
# $Header: /cvsroot/pgsql/src/bin/pg-config/Attic/Makefile,v 1.2 2000/09/08 18:29:26 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
|
|
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' \
|
|
$< >$@
|
|
chmod a+x $@
|
|
|
|
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
|