blob: e392f2ebf39aedb33d56ee8ccc0b7685c2d0f0cb (
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
|
# Postgres documentation makefile
# $Header: /cvsroot/pgsql/doc/src/Makefile,v 1.16 2001/02/17 16:47:57 tgl Exp $
subdir = doc/src
top_builddir = ../..
include $(top_builddir)/src/Makefile.global
TAR= tar
ZIP= gzip
ZIPSUFFIX= gz
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml' --exclude=ref
SRC= admin developer reference programmer tutorial user postgres
TARGETS= $(SRC:%=%.tar.$(ZIPSUFFIX))
.PRECIOUS:
.PHONY: install all sources clean distclean
install:
$(MAKE) all
(mv -f *.$(ZIPSUFFIX) ..)
clean:
$(MAKE) -C sgml clean
distclean:
$(MAKE) -C sgml distclean
all: $(TARGETS)
sources:
$(MAKE) sources.tar.$(ZIPSUFFIX)
sources.tar:
$(TAR) -cf $@ sgml graphics
admin.tar developer.tar reference.tar user.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml $(basename $@).html
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html
programmer.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml programmer.html
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C ../graphics catalogs.gif connections.gif
tutorial.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml tutorial.html
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C ../graphics clientserver.gif
postgres.tar:
$(MAKE) -C sgml clean
$(MAKE) -C sgml postgres.html
cd sgml && $(TAR) -cf ../$@ $(TAREXCLUDE) *.html -C ../graphics catalogs.gif clientserver.gif connections.gif
man.tar:
$(MAKE) -C sgml man
$(TAR) -cf $@ -C sgml man1 manl
# Generic production rules
# Compressed file
%.$(ZIPSUFFIX): %
$(ZIP) -f $<
|