Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit68a297a

Browse files
author
Thomas G. Lockhart
committed
Try a fancier makefile. Allows real building of html and rtf output
rather than just executing ../Makefile.
1 parentf95370c commit68a297a

File tree

1 file changed

+114
-2
lines changed

1 file changed

+114
-2
lines changed

‎doc/src/sgml/Makefile

Lines changed: 114 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,116 @@
1-
# Stopgap makefile for sgml documentation
1+
#----------------------------------------------------------------------------
2+
#
3+
# Makefile
4+
#Postgres documentation makefile
5+
#Thomas Lockhart
6+
#
7+
# Copyright (c) 1994, Regents of the University of California
8+
#
9+
#
10+
# IDENTIFICATION
11+
# $Header: /cvsroot/pgsql/doc/src/sgml/Makefile,v 1.2 1998/03/01 20:44:37 thomas Exp $
12+
#
13+
#----------------------------------------------------------------------------
214

3-
include ../Makefile
15+
PGDOCS= ../..
16+
SRCDIR= ../../../src
17+
18+
# This is where the default stylesheets appear on my system.
19+
# Probably no need to change this; rather, put definitions
20+
# for HSTYLE and PSTYLE and/or for HDSL and PDSL
21+
# in Makefile.custom in your code src directory.
22+
23+
HSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/html
24+
PSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/print
25+
26+
#HSTYLE=/home/tgl/SGML/db107.d/docbook/html
27+
#PSTYLE=/home/tgl/SGML/db107.d/docbook/print
28+
29+
HDSL=$(HSTYLE)/docbook.dsl
30+
PDSL=$(PSTYLE)/docbook.dsl
31+
32+
#DBOPTS= -V %no-split-output% -V %no-make-index%
33+
34+
TAR= tar
35+
36+
# Pick up Makefile.global from the source area
37+
# This is the only resource from the code source area and is optional.
38+
# Actually, we want this to get Makefile.custom - thomas 1998-03-01
39+
40+
ifneq ($(wildcard$(SRCDIR)/Makefile.global), )
41+
include$(SRCDIR)/Makefile.global
42+
endif
43+
44+
# Hmm, made this optional but jade _really_ doesn't like them missing
45+
# - thomas 1998-03-01
46+
ifneq ($(HDSL), )
47+
HTMLOPTS= -d$(HDSL)
48+
endif
49+
ifneq ($(PDSL), )
50+
PRINTOPTS= -d$(PDSL)
51+
endif
52+
53+
.PRECIOUS: postgres.tex postgres.dvi
54+
.PHONY: install all clean distclean
55+
56+
install::
57+
#$(MAKE) all
58+
#(mv -rf *.gz ..)
59+
60+
all::
61+
62+
clean::
63+
(rm -rf*.html*.htm)
64+
65+
distclean::
66+
$(MAKE) clean
67+
68+
#
69+
# Generic production rules
70+
#
71+
72+
# Compressed file
73+
74+
%.gz:%
75+
(gzip -f $<)
76+
77+
# TAR file for HTML package
78+
79+
%.tar:%.html# %.ps
80+
($(TAR) cf$@$*.html index.html*.htm*.gif)# $*.ps
81+
(rm -rf index.html*.htm)
82+
83+
# HTML
84+
# Include some softlinks to the generic default file names
85+
86+
%.html:%.sgml#$(HDSL)
87+
(rm -rf*.htm)
88+
jade$(DBOPTS) -D sgml$(HTMLOPTS) -t sgml$<
89+
(ln -sf book01.htm index.html)
90+
(ln -sf book01.htm$*.html)
91+
92+
# RTF to allow minor editing for hardcopy
93+
# This is used for v6.3 docs
94+
95+
%.rtf:%.sgml#$(PDSL)
96+
jade$(DBOPTS)$(PRINTOPTS) -t rtf$<
97+
98+
# TeX and DVI
99+
100+
%.tex:%.sgml#$(PDSL)
101+
jade$(DBOPTS)$(PRINTOPTS) -t tex$<
102+
103+
%.dvi:%.tex
104+
jadetex$<
105+
jadetex$<
106+
107+
# Postscript from TeX
108+
109+
%.ps:%.dvi
110+
dvips -o$@$<
111+
112+
# Graphics
113+
114+
%.gif:
115+
cp -p ../graphics/%.gif.
4116

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp