1 |
mimasa |
1.1 |
# Makefile for voyager |
2 |
|
|
# |
3 |
|
|
# generates static HTML versions from MetaHTML sources for xhtml-basic |
4 |
|
|
# |
5 |
ahby |
1.5.2.1 |
# $Id: Makefile,v 1.5.2.1 2006/03/22 15:20:07 ahby Exp $ |
6 |
mimasa |
1.1 |
# |
7 |
|
|
# $Log: Makefile,v $ |
8 |
ahby |
1.5.2.1 |
# Revision 1.5.2.1 2006/03/22 15:20:07 ahby |
9 |
|
|
# Fixed previous to point into new directory. |
10 |
|
|
# |
11 |
ahby |
1.5 |
# Revision 1.5 2004/11/12 22:45:01 ahby |
12 |
|
|
# Fixed the release generation script again. |
13 |
|
|
# |
14 |
ahby |
1.4 |
# Revision 1.4 2004/11/12 21:52:10 ahby |
15 |
|
|
# grrrr |
16 |
|
|
# |
17 |
ahby |
1.3 |
# Revision 1.3 2004/11/12 21:51:19 ahby |
18 |
|
|
# Changed previous. |
19 |
|
|
# |
20 |
ahby |
1.2 |
# Revision 1.2 2004/11/12 21:27:51 ahby |
21 |
|
|
# Added second edition data. |
22 |
|
|
# |
23 |
mimasa |
1.1 |
# Revision 1.1 2004/02/04 10:35:03 mimasa |
24 |
|
|
# Added files for production. |
25 |
|
|
# |
26 |
|
|
# Revision 1.3 2003/07/17 00:50:23 ahby |
27 |
|
|
# Updated the Makefile. |
28 |
|
|
# |
29 |
|
|
# Revision 1.2 2003/07/17 00:46:15 ahby |
30 |
|
|
# Updated the dev target and the previous version pointer. |
31 |
|
|
# |
32 |
|
|
# Revision 1.1 2003/07/16 18:57:05 ahby |
33 |
|
|
# Initial versions under source control. |
34 |
|
|
# |
35 |
|
|
# Revision 1.11 2003/05/01 22:10:03 ahby |
36 |
|
|
# Changed default document type to PR. |
37 |
|
|
# |
38 |
|
|
# Revision 1.10 2003/02/06 16:22:05 ahby |
39 |
|
|
# Fixed the document type references and style sheet references to be |
40 |
|
|
# dynamic again. |
41 |
|
|
# |
42 |
|
|
# Revision 1.9 2002/06/14 16:05:03 spemberton |
43 |
|
|
# Editorial cleanup |
44 |
|
|
# |
45 |
|
|
# Revision 1.8 2001/07/25 20:17:31 ahby |
46 |
|
|
# Removed references to xhtml-events in preparation for changing module name to |
47 |
|
|
# xhtml-print. |
48 |
|
|
# |
49 |
|
|
# Revision 1.7 2001/06/07 15:27:39 ahby |
50 |
|
|
# Fixed a broken link |
51 |
|
|
# |
52 |
|
|
# Revision 1.6 2001/06/05 15:39:23 ahby |
53 |
|
|
# Fixed the makefile - reference to html2ps was wrong. |
54 |
|
|
# |
55 |
|
|
# Revision 1.5 2001/06/05 15:34:49 ahby |
56 |
|
|
# Added the dev target for makes |
57 |
|
|
# |
58 |
|
|
# Revision 1.4 2001/06/05 15:30:36 ahby |
59 |
|
|
# added a mode to create a diff file and postscript/pdf |
60 |
|
|
# |
61 |
|
|
# Revision 1.3 2001/05/31 20:47:18 ahby |
62 |
|
|
# Fixed the makefile harder. |
63 |
|
|
# |
64 |
|
|
# Revision 1.2 2001/05/31 20:45:36 ahby |
65 |
|
|
# Updated makefile so that it could find the metahtml processor. |
66 |
|
|
# |
67 |
|
|
# Revision 1.1 2001/05/31 20:35:46 ahby |
68 |
|
|
# Converted over to using metahtml and macros. |
69 |
|
|
# Cleaned up headers/titles. |
70 |
|
|
# Started conversion to abstract module/DTD/Schema style. |
71 |
|
|
# |
72 |
|
|
# |
73 |
|
|
# |
74 |
|
|
|
75 |
|
|
.SUFFIXES: .mhtml .html |
76 |
|
|
|
77 |
|
|
.mhtml.html: |
78 |
|
|
-cat xmacros.mhtml $< | /usr/local/metahtml/bin/mhc --set smacs::type "$(TYPE)" | $(TIDY) > $@ |
79 |
|
|
|
80 |
ahby |
1.2 |
TYPE = PER |
81 |
mimasa |
1.1 |
|
82 |
|
|
TIDY = /usr/local/bin/tidy -n -wrap 200 |
83 |
|
|
|
84 |
|
|
SOURCE = |
85 |
|
|
|
86 |
|
|
OUTPUT = |
87 |
|
|
|
88 |
ahby |
1.5.2.1 |
PREVIOUS = /var/www/html/htmlwg/archives/REC-xhtml-basic-20001219/index.html |
89 |
mimasa |
1.1 |
|
90 |
ahby |
1.3 |
all: $(OUTPUT) index.html |
91 |
mimasa |
1.1 |
|
92 |
|
|
dev: all |
93 |
ahby |
1.5 |
/usr/local/bin/htmldiff -t $(PREVIOUS) index.html xhtml-basic-diff.html |
94 |
ahby |
1.3 |
/usr/local/bin/html2ps -f html2ps.conf -o xhtml-basic.ps index.html |
95 |
mimasa |
1.1 |
ps2pdf xhtml-basic.ps xhtml-basic.pdf |
96 |
|
|
|
97 |
|
|
release: $(OUTPUT) |
98 |
ahby |
1.3 |
-/usr/local/metahtml/bin/mhc --set smacs::hide-sections no --set smacs::type "$(TYPE)" --set date "$(DATE)" --set release "$(RELEASE)" Overview.mhtml | $(TIDY) > index.html |
99 |
mimasa |
1.1 |
rm -f fixrefs.sed |
100 |
|
|
|
101 |
ahby |
1.3 |
validate: $(OUTPUT) index.html |
102 |
|
|
for file in $(OUTPUT) index.html; \ |
103 |
mimasa |
1.1 |
do \ |
104 |
|
|
/usr/local/bin/nsgmls -s -wxml $$file ; \ |
105 |
|
|
done |
106 |
|
|
|
107 |
|
|
clobber: |
108 |
ahby |
1.3 |
-rm -rf $(OUTPUT) index.html xhtml-basic xhtml-basic-*.html *.pdf *.ps *.zip *.tgz |
109 |
mimasa |
1.1 |
|
110 |
|
|
$(OUTPUT): xmacros.mhtml |
111 |
|
|
|
112 |
ahby |
1.3 |
index.html: Overview.mhtml xmacros.mhtml $(SOURCE) |
113 |
|
|
-/usr/local/metahtml/bin/mhc --set smacs::hide-sections no --set smacs::type "$(TYPE)" Overview.mhtml | $(TIDY) > index.html |
114 |
mimasa |
1.1 |
rm -f fixrefs.sed |