mirror of
https://git.postgresql.org/git/postgresql.git
synced 2026-02-20 13:27:00 +08:00
37 lines
974 B
Makefile
37 lines
974 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for src/bin/initdb
|
|
#
|
|
# Portions Copyright (c) 1996-2002, PostgreSQL Global Development Group
|
|
# Portions Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.28 2002/09/03 21:45:43 petere Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
subdir = src/bin/initdb
|
|
top_builddir = ../../..
|
|
include $(top_builddir)/src/Makefile.global
|
|
|
|
all: initdb
|
|
|
|
initdb: initdb.sh $(top_builddir)/src/Makefile.global
|
|
sed -e 's/@VERSION@/$(VERSION)/g' \
|
|
-e 's,@SHELL@,$(SHELL),g' \
|
|
-e 's,@bindir@,$(bindir),g' \
|
|
-e 's,@datadir@,$(datadir),g' \
|
|
$< >$@
|
|
chmod a+x $@
|
|
|
|
install: all installdirs
|
|
$(INSTALL_SCRIPT) initdb $(DESTDIR)$(bindir)/initdb
|
|
|
|
installdirs:
|
|
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
|
|
|
uninstall:
|
|
rm -f $(DESTDIR)$(bindir)/initdb
|
|
|
|
clean distclean maintainer-clean:
|
|
rm -f initdb
|