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

Commitffa399e

Browse files
author
Thomas G. Lockhart
committed
Make this rely on a real Makefile in sgml/.
Implement installation and cleaning.
1 parent90dbfa5 commitffa399e

File tree

1 file changed

+29
-79
lines changed

1 file changed

+29
-79
lines changed

‎doc/src/Makefile‎

Lines changed: 29 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,6 @@
44
PGDOCS= ..
55
SRCDIR= ../../src
66

7-
HPATH=$(PGDOCS)/doc
8-
PPATH=$(PGDOCS)/doc
9-
10-
#HSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/html
11-
#PSTYLE=/usr/lib/sgml/stylesheets/jade/docbook/print
12-
13-
HSTYLE=/home/tgl/SGML/db107.d/docbook/html
14-
PSTYLE=/home/tgl/SGML/db107.d/docbook/print
15-
16-
HDSL=$(HSTYLE)/docbook.dsl
17-
PDSL=$(PSTYLE)/docbook.dsl
18-
19-
#DBOPTS=-V %no-split-output% -V %no-make-index%
20-
217
TAR= tar
228
TAREXCLUDE= --exclude=Makefile --exclude='*.sgml'
239

@@ -28,38 +14,52 @@ ifneq ($(wildcard $(SRCDIR)/Makefile.custom), )
2814
include$(SRCDIR)/Makefile.custom
2915
endif
3016

31-
TARGETS=postgres tutorial user admin programmer
17+
SRC= adminpostgresprogrammertutorial user
3218

33-
HTARGETS=#make this a mapping from targets
34-
PTARGETS=#make this a mapping from targets
19+
TARGETS=$(SRC:%=%.tar.gz)
3520

36-
.PRECIOUS: postgres.html postgres.tex postgres.dvi
37-
.PHONY: sources clean
21+
.PRECIOUS:
22+
.PHONY:install allsources clean distclean
3823

3924
install::
4025
$(MAKE) all
41-
(mv -rf*.gz ..)
26+
(mv -f*.gz ..)
27+
28+
clean::
29+
$(MAKE) -C sgml clean
30+
31+
distclean::
32+
$(MAKE) -C sgml distclean
4233

43-
all::$(SGO)$(SGP)
34+
all::$(TARGETS)
4435

4536
sources::
46-
($(TAR) zcf sources.tar.gz--exclude='*.htm*' --exclude='*.gz' .)
37+
($(TAR) zcf sources.tar.gzsgml graphics)
4738

48-
user.tar.gz:
39+
admin.tar.gz:
4940
$(MAKE) -C sgml clean
50-
$(MAKE) -C sgml user.html
51-
($(TAR) zcf$@$(TAREXCLUDE) -C sgml .)
41+
$(MAKE) -C sgml admin.html
42+
($(TAR) zcf$@$(TAREXCLUDE) -C sgml. -C .. -C graphics layout.gif)
43+
44+
postgres.tar.gz:
45+
$(MAKE) -C sgml clean
46+
$(MAKE) -C sgml postgres.html
47+
($(TAR) zcf$@$(TAREXCLUDE) -C sgml. -C .. -C graphics catalogs.gif connections.gif layout.gif)
48+
49+
programmer.tar.gz:
50+
$(MAKE) -C sgml clean
51+
$(MAKE) -C sgml programmer.html
52+
($(TAR) zcf$@$(TAREXCLUDE) -C sgml. -C .. -C graphics catalogs.gif connections.gif)
5253

5354
tutorial.tar.gz:
5455
$(MAKE) -C sgml clean
5556
$(MAKE) -C sgml tutorial.html
5657
($(TAR) zcf$@$(TAREXCLUDE) -C sgml. -C .. -C graphics clientserver.gif)
5758

58-
clean::
59-
(rm -rf*.html*.htm)
60-
61-
distclean::
59+
user.tar.gz:
6260
$(MAKE) -C sgml clean
61+
$(MAKE) -C sgml user.html
62+
($(TAR) zcf$@$(TAREXCLUDE) -C sgml .)
6363

6464
# Generic production rules
6565

@@ -68,53 +68,3 @@ distclean::
6868
%.gz:%
6969
(gzip -f $<)
7070

71-
# TAR file for HTML package
72-
73-
%.tar:%.html# %.ps
74-
(tar cf$@$*.html index.html*.htm*.gif)# $*.ps
75-
(rm -rf index.html*.htm)
76-
77-
#(mkdir $*)
78-
#(rm -rf $*/*)
79-
#(mv *.htm $*/)
80-
#(cd $*/; ln -sf book01.htm index.html)
81-
#(tar cf $@ $*)
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 -d$(HDSL) -t sgml$<
89-
(ln -sf book01.htm index.html)
90-
(ln -sf book01.htm$*.html)
91-
92-
#(mkdir $(HPATH)/$*)# be sure there is somewhere to put them
93-
#(rm -rf $(HPATH)/$*/*)# remove existing files since some names may be obsolete
94-
#(mv *.htm $(HPATH)/$*/)# and copy 'em over
95-
#(cd $(HPATH)/$*/; ln -sf book01.htm index.html)
96-
97-
# RTF to allow minor editing for hardcopy
98-
# This is used for v6.3 docs
99-
100-
%.rtf:%.sgml$(PDSL)
101-
jade$(DBOPTS) -d$(PDSL) -t rtf$<
102-
103-
# TeX and DVI
104-
105-
%.tex:%.sgml$(PDSL)
106-
jade$(DBOPTS) -d$(PDSL) -t tex$<
107-
108-
%.dvi:%.tex
109-
jadetex$<
110-
jadetex$<
111-
112-
# Postscript from TeX
113-
114-
%.ps:%.dvi
115-
dvips -o$@$<
116-
117-
# Graphics
118-
119-
%.gif:
120-
cp -p graphics/%.gif.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp