-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathMakefile
44 lines (35 loc) · 885 Bytes
/
Makefile
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
35
36
37
38
39
40
41
42
43
include Makefile.global
all:
make -C docs all
make -C src all
make -C deps all
make install.sh
install.sh: install.sh.in
sed 's/__VERSION__/$(VERSION)/' ./install.sh.in > install.sh
check:
make -C lib check
make -C bin check
make -C src check
install:
mkdir -p $(PREFIX)
install -m 644 LICENSE $(PREFIX)
make -C bin install
make -C lib install
make -C src install
make -C docs install
uninstall:
rm -rf $(PREFIX)
dist: uninstall install installcheck
tar zcvf postgres-toolkit-$(VERSION).tar.gz $(PREFIX)
installcheck:
find $(PREFIX)/bin -name 'pt-*' -type f | sort | awk '{ print $$1 " --help" }' | sh > installcheck.out
diff -rc installcheck.expected installcheck.out
clean:
make -C bin clean
make -C lib clean
make -C docs clean
make -C src clean
make -C deps clean
rm -rf postgres-toolkit-$(VERSION).tar.gz
rm -f installcheck.out
rm -f install.sh