36 lines
901 B
Makefile
36 lines
901 B
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile for src/bin/initdb
|
|
#
|
|
# Copyright (c) 1994, Regents of the University of California
|
|
#
|
|
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.24 2000/09/17 13:02:31 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/@MULTIBYTE@/$(MULTIBYTE)/g' \
|
|
-e 's/@VERSION@/$(VERSION)/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
|