8
8
#
9
9
#
10
10
# IDENTIFICATION
11
- # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.8 1999/07 /06 17:19:41 thomas Exp $
11
+ # $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.9 1999/08 /06 13:46:17 thomas Exp $
12
12
#
13
13
# ----------------------------------------------------------------------------
14
14
15
15
PGDOCS = ../..
16
16
SRCDIR = ../../../src
17
- D2MDIR = ../docbook2man
18
17
19
- # This is where the default stylesheets appear on my system.
18
+ # This is where the default stylesheets appear on my linux system.
20
19
# Probably no need to change this; rather, put definitions
21
20
# for HSTYLE and PSTYLE and/or for HDSL and PDSL
22
21
# in Makefile.custom in your code src directory.
23
-
24
22
# HSTYLE=/usr/lib/sgml/stylesheets/nwalsh-modular/html
25
23
# PSTYLE=/usr/lib/sgml/stylesheets/nwalsh-modular/print
24
+ # This is where the production stylesheets appear on postgresql.org
26
25
27
- HSTYLE =/opt/sgml/current /docbook/html
28
- PSTYLE =/opt/sgml/current /docbook/print
26
+ HSTYLE = /home/users/t/thomas/db118.d /docbook/html
27
+ PSTYLE = /home/users/t/thomas/db118.d /docbook/print
29
28
30
29
HDSL =$(HSTYLE ) /docbook.dsl
31
30
PDSL =$(PSTYLE ) /docbook.dsl
@@ -39,14 +38,20 @@ DBOPTS= -D ref -D ../graphics
39
38
# as in v6.3 documentation. Yuck.
40
39
DBOPTS+ = -V %use-id-as-filename%
41
40
41
+ # docbook2man generates man pages from docbook refentry source code.
42
+ # This is where the (patched) docbook2man perl scripts reside on hub.org.
43
+
44
+ D2MDIR = /home/users/t/thomas/d2x/docbook2man
45
+ D2MSCRIPT = $(D2MDIR ) /docbook2man-spec.pl
46
+
42
47
TAR = tar
43
48
44
49
# Pick up Makefile.global from the source area
45
50
# This is the only resource from the code source area and is optional.
46
51
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
47
52
48
- ifneq ($(wildcard $(SRCDIR ) /Makefile.global) , )
49
- include $(SRCDIR ) /Makefile.global
53
+ ifneq ($(wildcard $(SRCDIR ) /Makefile.global) ,)
54
+ include $(SRCDIR ) /Makefile.global
50
55
endif
51
56
52
57
# Hmm, made this optional but jade _really_ doesn't like them missing
@@ -58,16 +63,23 @@ ifneq ($(PDSL), )
58
63
PRINTOPTS = -d $(PDSL )
59
64
endif
60
65
66
+ vpath % .sgml ./ref
67
+
61
68
MANSOURCES = $(wildcard ref/* .sgml)
62
69
63
70
APPLICATIONS = createdb.sgml createuser.sgml \
71
+ createlang.sgml \
64
72
destroydb.sgml destroyuser.sgml \
73
+ destroylang.sgml \
65
74
initdb.sgml initlocation.sgml \
75
+ ipcclean.sgml \
66
76
pg_dump.sgml \
67
77
pg_dumpall.sgml \
68
78
pg_upgrade.sgml \
69
79
pgaccess-ref.sgml \
70
80
pgadmin-ref.sgml \
81
+ pgtclsh.sgml \
82
+ pgtksh.sgml \
71
83
postgres-ref.sgml \
72
84
postmaster.sgml \
73
85
psql-ref.sgml \
@@ -93,40 +105,42 @@ COMMANDS= abort.sgml alter_table.sgml alter_user.sgml \
93
105
94
106
FUNCTIONS = current_date.sgml current_time.sgml current_timestamp.sgml current_user.sgml
95
107
96
- APPSOURCES = $(addprefix ref/, $(APPLICATIONS ) )
97
- SQLSOURCES = $(addprefix ref/, $(COMMANDS ) )
98
- APPTARGETS = $(APPLICATIONS:.sgml=.1 )
99
- SQLTARGETS = $(COMMANDS:.sgml=.l )
108
+ # APPSOURCES= $(addprefix ref/, $(APPLICATIONS))
109
+ # SQLSOURCES= $(addprefix ref/, $(COMMANDS))
110
+ APPSOURCES = $(APPLICATIONS )
111
+ SQLSOURCES = $(COMMANDS )
112
+ XAPPTARGETS = $(APPLICATIONS:.sgml=.1 )
113
+ APPTARGETS = $(XAPPTARGETS:-ref.1=.1 )
114
+ XSQLTARGETS = $(COMMANDS:.sgml=.l )
115
+ SQLTARGETS = $(XSQLTARGETS:-ref.l=.l )
100
116
101
117
.PRECIOUS : postgres.tex postgres.dvi
102
118
.PHONY : install all clean distclean
103
119
104
120
install ::
105
- # $(MAKE) all
106
- # (mv -rf *.gz ..)
107
121
108
122
all ::
109
123
110
- # man:: .manlist
111
- # for f in `cat .manlist` ; do \
112
- # nsgmls $f | sgmlspl ../docbook2man/docbook2man-spec.pl --lowercase; \
113
- # done
114
- #
115
- # .manlist: $(MANSOURCES)
116
- # (grep -iE '<refentry([ ]|>)' $(MANSOURCES) | cut -f 1 -d : | sort | uniq) > .manlist
124
+ man :
125
+ $( MAKE ) man1 manl
126
+ ( $( RM ) -r * .1 * .l man1 manl)
127
+ $( MAKE ) man1 manl
128
+
129
+ manpage.refs :
130
+ $( MAKE ) man
117
131
118
- man1 : $(APPTARGETS )
132
+ man1 : $(APPTARGETS ) manpage.refs
119
133
$(RM ) -rf man1
120
134
if [ ! -d man1 ]; then mkdir man1; fi
121
- mv * .1 man1/
135
+ cp * .1 man1/
122
136
123
- manl : $(SQLTARGETS )
137
+ manl : $(SQLTARGETS ) manpage.refs
124
138
$(RM ) -rf manl/*
125
139
if [ ! -d manl ]; then mkdir manl; fi
126
- mv * .l manl/
140
+ cp * .l manl/
127
141
128
142
clean ::
129
- (rm -rf HTML.manifest * .html * .htm man1 manl manpage* )
143
+ (rm -rf HTML.manifest * .html * .htm * .1 * .l man1 manl manpage* )
130
144
131
145
distclean ::
132
146
$(MAKE ) clean
@@ -135,11 +149,14 @@ distclean::
135
149
# Generic production rules
136
150
#
137
151
138
- % .1 : ref/% .sgml
139
- nsgmls $< | sgmlspl $(D2MDIR ) /docbook2man-spec.pl --defsection 1
152
+ % .1 : % -ref.sgml
153
+ nsgmls $< | sgmlspl $(D2MSCRIPT ) --lowercase --section 1
154
+
155
+ % .1 : % .sgml
156
+ nsgmls $< | sgmlspl $(D2MSCRIPT ) --lowercase --section 1
140
157
141
- % .l : ref/ % .sgml
142
- nsgmls $< | sgmlspl $(D2MDIR ) /docbook2man-spec.pl --defsection l
158
+ % .l : % .sgml
159
+ nsgmls $< | sgmlspl $(D2MSCRIPT ) --lowercase --section l
143
160
144
161
# HTML
145
162
# Include some softlinks to the generic default file names
0 commit comments