blob: 81d4cf769ac7bcee92e1d38bf95bd218a3847529 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
# Postgres documentation makefile
# Thomas Lockhart
PGDOCS= ..
SRCDIR= ../../src
TAR= tar
ZIP= gzip
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
# Pick up Makefile.global from the source area
# This is the only resource from the code source area and is optional
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
include $(SRCDIR)/Makefile.global
endif
SRC= admin postgres programmer tutorial user
TARGETS= $(SRC:%=%.tar.gz)
.PRECIOUS:
.PHONY: install all sources clean distclean
install::
$(MAKE) all
(mv -f *.gz ..)
clean::
$(MAKE) -C sgml clean
distclean::
$(MAKE) -C sgml distclean
all:: $(TARGETS)
sources::
$(MAKE) sources.tar.gz
sources.tar:
($(TAR) -cf $@ sgml graphics)
admin.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml admin.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics layout.gif)
installation.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml installation.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
postgres.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml postgres.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif layout.gif)
programmer.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml programmer.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
tutorial.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml tutorial.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) -C sgml . -C .. -C graphics clientserver.gif)
user.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml user.html
(cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
# Generic production rules
# Compressed file
%.gz: %
($(ZIP) -f $<)
|