OSDN Git Service

Backend makefile cleanup. make maintainer-clean is now completely
[pg-rex/syncrep.git] / src / bin / initdb / Makefile
1 #-------------------------------------------------------------------------
2 #
3 # Makefile for src/bin/initdb
4 #
5 # Copyright (c) 1994, Regents of the University of California
6 #
7 # $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.20 2000/07/06 21:33:38 petere Exp $
8 #
9 #-------------------------------------------------------------------------
10
11 subdir = src/bin/initdb
12 top_builddir = ../../..
13 include ../../Makefile.global
14
15 all: initdb
16
17 initdb: initdb.sh ../../Makefile.global
18         sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/g' \
19             -e 's/__VERSION__/$(VERSION)/g' \
20             -e 's:__bindir__:$(bindir):g' \
21             -e 's:__datadir__:$(datadir):g' \
22           < $< > $@
23
24 install: all installdirs
25         $(INSTALL_SCRIPT) initdb $(bindir)/initdb
26
27 installdirs:
28         $(mkinstalldirs) $(bindir)
29
30 uninstall:
31         rm -f $(bindir)/initdb
32
33 clean distclean maintainer-clean:
34         rm -f initdb