7
7
# set to ~/Sites. If you don't have a local server, set OOFWEBDIR to
8
8
# any empty writable directory outside of tmpdir.
9
9
10
+ # All xml files that are *not* part of the reference section generated
11
+ # by OOF2's xmlmenudump need to be listed in the file xmlfilelist in
12
+ # this directory. The list needs to be in the order in which the
13
+ # files are included in the main document. This ordering is used in
14
+ # the "See Also" sections of the reference pages. If it's wrong, some
15
+ # pages will be less pretty.
16
+
10
17
# "make local" generates html from the xml source files, using the xml
11
18
# tools, and then wraps the html output in NIST boilerplate and puts
12
19
# it in OOFWEBDIR/oof2man.
13
20
14
21
# "make publish" copies the local output to the CTCMS web server.
15
22
16
- XMLFILES = CH_graphics.xml CH_tasks.xml CH_windows.xml SN_skel.xml \
17
- man_oof2.xml oof2_api.xml CH_overview.xml CH_concepts.xml SN_micro.xml
18
-
19
23
# On macOS with macports, dvi2bitmap needs to be built with
20
24
# --with-kpathsea --enable-fontgen
21
25
@@ -26,6 +30,10 @@ DVI2BITMAP = dvi2bitmap --magnification=5 --scaledown=4 --output-type=gif --font
26
30
# mktexpk if it's not using kpathsea.
27
31
TEMPDIR = tmpdir
28
32
33
+ # There's no need to explicitly list all of the xml files in the
34
+ # dependencies. They're included by man_oof2.xml, which depends on
35
+ # oof2_api.xml, and oof2_api.ml is always rebuilt.
36
+
29
37
SAXON = ../xsl/java/saxon.jar
30
38
# # TODO: More up-to-date saxon from MacPorts raises lots of warnings
31
39
# # and errors. Is there any point in updating?
@@ -61,11 +69,11 @@ oof2man.tgz: $(TEMPDIR) saxonize.ext texify figs
61
69
tar -czf oof2man.tgz oof2man
62
70
-rm -rf oof2man
63
71
64
- saxonize.web : $( XMLFILES )
72
+ saxonize.web : oof2_api.xml
65
73
mkdir $(TEMPDIR ) /equations
66
74
(cd $( TEMPDIR) ; rm -f * .html; java -jar $( SAXON) ../man_oof2.xml ../xsl/oofchunk.xsl nist.exit.script=1)
67
75
68
- saxonize.ext : $( XMLFILES )
76
+ saxonize.ext : oof2_api.xml
69
77
(cd $( TEMPDIR) ; rm -f * .html; java -jar $( SAXON) ../man_oof2.xml ../xsl/oofchunk.xsl)
70
78
71
79
texify :
@@ -75,7 +83,7 @@ texify:
75
83
oof2 : always
76
84
(cd build; make -j 10 DESTDIR=~ /stow/oof2-py311 install; cd ~ /stow; ./switchto oof2-py311)
77
85
78
- oof2_api.xml : oof2
86
+ oof2_api.xml : oof2 xmlfilelist
79
87
bin/oof2 --script xmldump.py --quiet --debug
80
88
sed s/Graphics_1/Graphics_n/g oof2_api.xml > tmp
81
89
mv -f tmp oof2_api.xml
0 commit comments