]> granicus.if.org Git - postgresql/blob - doc/src/Makefile
Minor markup changes. Refer to (".../catalog") in the emacs hints.
[postgresql] / doc / src / Makefile
1 # Postgres documentation makefile
2 # Thomas Lockhart
3
4 # Not yet generated from configure, so use relative path names for now...
5 PGDOCS= ..
6 SRCDIR= ../../src
7
8 TAR= tar
9 ZIP= gzip
10 TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
11
12 # Pick up Makefile.global from the source area
13 # This is the only resource from the code source area and is optional
14
15 ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
16 include $(SRCDIR)/Makefile.global
17 endif
18
19 SRC= admin postgres programmer tutorial user
20
21 TARGETS= $(SRC:%=%.tar.gz)
22
23 .PRECIOUS:
24 .PHONY: install all sources clean distclean
25
26 install::
27         $(MAKE) all
28         (mv -f *.gz ..)
29
30 clean::
31         $(MAKE) -C sgml clean
32
33 distclean::
34         $(MAKE) -C sgml distclean
35
36 all:: $(TARGETS)
37
38 sources::
39         $(MAKE) sources.tar.gz
40
41 sources.tar:
42         ($(TAR) -cf $@ sgml graphics)
43
44 admin.tar:
45         $(MAKE) -C sgml clean
46         $(MAKE) -C sgml admin.html
47         (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics layout.gif)
48
49 installation.tar:
50         $(MAKE) -C sgml clean
51         $(MAKE) -C sgml installation.html
52         (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
53
54 postgres.tar:
55         $(MAKE) -C sgml clean
56         $(MAKE) -C sgml postgres.html
57         (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif layout.gif)
58
59 programmer.tar:
60         $(MAKE) -C sgml clean
61         $(MAKE) -C sgml programmer.html
62         (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
63
64 tutorial.tar:
65         $(MAKE) -C sgml clean
66         $(MAKE) -C sgml tutorial.html
67         (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif)
68
69 user.tar:
70         $(MAKE) -C sgml clean
71         $(MAKE) -C sgml user.html
72         (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
73
74 man.tar:
75         $(MAKE) -C sgml man
76         $(TAR) -cf $@ -C sgml man1 manl
77
78 # Generic production rules
79
80 # Compressed file
81
82 %.gz:   %
83         ($(ZIP) -f $<)
84