1 # Postgres documentation makefile
4 # Not yet generated from configure, so use relative path names for now...
10 TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
12 # Pick up Makefile.global from the source area
13 # This is the only resource from the code source area and is optional
15 ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
16 include $(SRCDIR)/Makefile.global
19 SRC= admin postgres programmer tutorial user
21 TARGETS= $(SRC:%=%.tar.gz)
24 .PHONY: install all sources clean distclean
34 $(MAKE) -C sgml distclean
39 $(MAKE) sources.tar.gz
42 ($(TAR) -cf $@ sgml graphics)
46 $(MAKE) -C sgml admin.html
47 (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics layout.gif)
51 $(MAKE) -C sgml installation.html
52 (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
56 $(MAKE) -C sgml postgres.html
57 (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif clientserver.gif connections.gif layout.gif)
61 $(MAKE) -C sgml programmer.html
62 (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics catalogs.gif connections.gif)
66 $(MAKE) -C sgml tutorial.html
67 (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm -C ../graphics clientserver.gif)
71 $(MAKE) -C sgml user.html
72 (cd sgml; $(TAR) -cf ../$@ $(TAREXCLUDE) *.html *.htm)
76 $(TAR) -cf $@ -C sgml man1 manl
78 # Generic production rules