OSDN Git Service

Add copyright mentions, per Tom Lane.
[pg-rex/syncrep.git] / src / bin / initdb / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/bin/initdb
4 #
5 # Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
6 # Portions Copyright (c) 1994, Regents of the University of California
7 #
8 # $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.25 2001/02/18 18:33:59 momjian Exp $
9 #
10 #-------------------------------------------------------------------------
11
12 subdir = src/bin/initdb
13 top_builddir = ../../..
14 include $(top_builddir)/src/Makefile.global
15
16 all: initdb
17
18 initdb: initdb.sh $(top_builddir)/src/Makefile.global
19         sed -e 's/@MULTIBYTE@/$(MULTIBYTE)/g' \
20             -e 's/@VERSION@/$(VERSION)/g' \
21             -e 's,@bindir@,$(bindir),g' \
22             -e 's,@datadir@,$(datadir),g' \
23           $< >$@
24         chmod a+x $@
25
26 install: all installdirs
27         $(INSTALL_SCRIPT) initdb $(DESTDIR)$(bindir)/initdb
28
29 installdirs:
30         $(mkinstalldirs) $(DESTDIR)$(bindir)
31
32 uninstall:
33         rm -f $(DESTDIR)$(bindir)/initdb
34
35 clean distclean maintainer-clean:
36         rm -f initdb