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.6 |
# $Id: Makefile,v 1.5.2.6 2006/10/12 15:48:16 ahby Exp $ |
6 |
mimasa |
1.1 |
# |
7 |
|
|
# |
8 |
|
|
|
9 |
|
|
.SUFFIXES: .mhtml .html |
10 |
|
|
|
11 |
|
|
.mhtml.html: |
12 |
|
|
-cat xmacros.mhtml $< | /usr/local/metahtml/bin/mhc --set smacs::type "$(TYPE)" | $(TIDY) > $@ |
13 |
|
|
|
14 |
ahby |
1.5.2.5 |
TYPE = ED |
15 |
mimasa |
1.1 |
|
16 |
|
|
TIDY = /usr/local/bin/tidy -n -wrap 200 |
17 |
|
|
|
18 |
|
|
SOURCE = |
19 |
|
|
|
20 |
ahby |
1.5.2.4 |
OUTPUT = xhtml-basic11-f.dtd |
21 |
mimasa |
1.1 |
|
22 |
ahby |
1.5.2.6 |
PREVIOUS = /var/www/html/htmlwg/WD-xhtml-basic-20060913/index.html |
23 |
|
|
PREVIOUSREC = /var/www/html/htmlwg/archives/REC-xhtml-basic-20001219/index.html |
24 |
mimasa |
1.1 |
|
25 |
ahby |
1.3 |
all: $(OUTPUT) index.html |
26 |
mimasa |
1.1 |
|
27 |
|
|
dev: all |
28 |
ahby |
1.5 |
/usr/local/bin/htmldiff -t $(PREVIOUS) index.html xhtml-basic-diff.html |
29 |
ahby |
1.5.2.6 |
/usr/local/bin/htmldiff -t $(PREVIOUSREC) index.html xhtml-basic-rec-diff.html |
30 |
ahby |
1.3 |
/usr/local/bin/html2ps -f html2ps.conf -o xhtml-basic.ps index.html |
31 |
mimasa |
1.1 |
ps2pdf xhtml-basic.ps xhtml-basic.pdf |
32 |
|
|
|
33 |
|
|
release: $(OUTPUT) |
34 |
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 |
35 |
mimasa |
1.1 |
rm -f fixrefs.sed |
36 |
|
|
|
37 |
ahby |
1.3 |
validate: $(OUTPUT) index.html |
38 |
|
|
for file in $(OUTPUT) index.html; \ |
39 |
mimasa |
1.1 |
do \ |
40 |
|
|
/usr/local/bin/nsgmls -s -wxml $$file ; \ |
41 |
|
|
done |
42 |
|
|
|
43 |
|
|
clobber: |
44 |
ahby |
1.3 |
-rm -rf $(OUTPUT) index.html xhtml-basic xhtml-basic-*.html *.pdf *.ps *.zip *.tgz |
45 |
mimasa |
1.1 |
|
46 |
|
|
$(OUTPUT): xmacros.mhtml |
47 |
|
|
|
48 |
ahby |
1.3 |
index.html: Overview.mhtml xmacros.mhtml $(SOURCE) |
49 |
|
|
-/usr/local/metahtml/bin/mhc --set smacs::hide-sections no --set smacs::type "$(TYPE)" Overview.mhtml | $(TIDY) > index.html |
50 |
mimasa |
1.1 |
rm -f fixrefs.sed |
51 |
ahby |
1.5.2.3 |
|
52 |
ahby |
1.5.2.4 |
xhtml-basic11-f.dtd: xhtml-basic11.dtd xhtml-basic11-model-1.mod |
53 |
ahby |
1.5.2.3 |
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML Basic 1.1//EN" "xhtml-basic11.dtd">
<html><head><title>title</title></head><body><p>text</p></body></html>' | spam -p -p - | sed -e 's/^<!DOCTYPE html \[//' -e '/^]>$$/,$$d' > xhtml-basic11-f.dtd |