blob: 24023ed13caf3db1691afc3ecbc74ff697b39701 (
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
|
#----------------------------------------------------------------------------
#
# Makefile
# Postgres documentation makefile
# Thomas Lockhart
#
# Copyright (c) 1994, Regents of the University of California
#
#
# IDENTIFICATION
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.3 1998/05/13 05:33:30 thomas Exp $
#
#----------------------------------------------------------------------------
PGDOCS= ../..
SRCDIR= ../../../src
# This is where the default stylesheets appear on my system.
# Probably no need to change this; rather, put definitions
# for HSTYLE and PSTYLE and/or for HDSL and PDSL
# in Makefile.custom in your code src directory.
HSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/html
PSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/print
#HSTYLE=/home/tgl/SGML/db107.d/docbook/html
#PSTYLE=/home/tgl/SGML/db107.d/docbook/print
HDSL=$(HSTYLE)/docbook.dsl
PDSL=$(PSTYLE)/docbook.dsl
DBOPTS= -D ref
#DBOPTS+= -V %no-split-output% -V %no-make-index%
TAR= tar
# Pick up Makefile.global from the source area
# This is the only resource from the code source area and is optional.
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
ifneq ($(wildcard $(SRCDIR)/Makefile.global), )
include $(SRCDIR)/Makefile.global
endif
# Hmm, made this optional but jade _really_ doesn't like them missing
# - thomas 1998-03-01
ifneq ($(HDSL), )
HTMLOPTS= -d $(HDSL)
endif
ifneq ($(PDSL), )
PRINTOPTS= -d $(PDSL)
endif
.PRECIOUS: postgres.tex postgres.dvi
.PHONY: install all clean distclean
install::
# $(MAKE) all
# (mv -rf *.gz ..)
all::
clean::
(rm -rf *.html *.htm)
distclean::
$(MAKE) clean
#
# Generic production rules
#
# Compressed file
%.gz: %
(gzip -f $<)
# TAR file for HTML package
%.tar: %.html # %.ps
($(TAR) cf $@ $*.html index.html *.htm *.gif) # $*.ps
(rm -rf index.html *.htm)
# HTML
# Include some softlinks to the generic default file names
%.html: %.sgml #$(HDSL)
(rm -rf *.htm)
jade $(DBOPTS) $(HTMLOPTS) -t sgml $<
(ln -sf book01.htm index.html)
(ln -sf book01.htm $*.html)
# RTF to allow minor editing for hardcopy
# This is used for v6.3 docs
%.rtf: %.sgml #$(PDSL)
jade $(DBOPTS) $(PRINTOPTS) -t rtf $<
# TeX and DVI
%.tex: %.sgml #$(PDSL)
jade $(DBOPTS) $(PRINTOPTS) -t tex $<
%.dvi: %.tex
jadetex $<
jadetex $<
# Postscript from TeX
%.ps: %.dvi
dvips -o $@ $<
# Graphics
%.gif:
cp -p ../graphics/%.gif .
|