summaryrefslogtreecommitdiff
path: root/src/bin/initdb/Makefile
blob: 2da162e2728788824d875054b3a8daa77990837a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#-------------------------------------------------------------------------
#
# Makefile for src/bin/initdb
#
# Copyright (c) 1994, Regents of the University of California
#
# $Header: /cvsroot/pgsql/src/bin/initdb/Makefile,v 1.20 2000/07/06 21:33:38 petere Exp $
#
#-------------------------------------------------------------------------

subdir = src/bin/initdb
top_builddir = ../../..
include ../../Makefile.global

all: initdb

initdb: initdb.sh ../../Makefile.global
	sed -e 's/__MULTIBYTE__/$(MULTIBYTE)/g' \
	    -e 's/__VERSION__/$(VERSION)/g' \
	    -e 's:__bindir__:$(bindir):g' \
	    -e 's:__datadir__:$(datadir):g' \
	  < $< > $@

install: all installdirs
	$(INSTALL_SCRIPT) initdb $(bindir)/initdb

installdirs:
	$(mkinstalldirs) $(bindir)

uninstall:
	rm -f $(bindir)/initdb

clean distclean maintainer-clean:
	rm -f initdb