1
1
srcdir=oops-missing-srcdir
2
2
installdir=oops-missing-installdir
3
+ InstallReleaseNotes=oops-missing-InstallReleaseNotes
4
+ relInstallReleaseNotes=oops-missing-relInstallReleaseNotes
3
5
m=oops-missing-m
4
6
STEXLIB=oops-missing-stexlib
5
7
# Zuo overrides the above variables when running `make`
@@ -17,18 +19,6 @@ DIR=$(shell basename `pwd`)
17
19
18
20
target: canned logcheck1 logcheck2 checklibs $(x).html $(x).pdf
19
21
20
- install: target
21
- $(INSTALL) -m 2755 -d $(installdir)
22
- $(INSTALL) -m 0644 --ifdiff *.html *.css $(installdir)
23
- $(INSTALL) -m 0644 --ifdiff csug.pdf $(installdir)/csug9_9.pdf
24
- $(INSTALL) -m 2755 -d $(installdir)/canned
25
- $(INSTALL) -m 0644 --ifdiff canned/* $(installdir)/canned
26
- $(INSTALL) -m 2755 -d $(installdir)/gifs
27
- $(INSTALL) -m 0644 --ifdiff gifs/*.gif $(installdir)/gifs
28
- $(INSTALL) -m 2755 -d $(installdir)/$(mathdir)
29
- $(INSTALL) -m 0644 --ifdiff $(mathdir)/*.gif $(installdir)/$(mathdir)
30
- (cd $(installdir); ln -s -f $(x).html index.html)
31
-
32
22
# thrice is not enough when starting from scratch
33
23
logcheck1: $(x).thirdrun
34
24
@if [ -n "`grep 'Warning: Label(s) may have changed' $(x).log`" ] ; then\
@@ -50,14 +40,43 @@ logcheck2: $(x).thirdrun
50
40
51
41
include $(STEXLIB)/Mf-stex
52
42
43
+ install: target
44
+ $(INSTALL) -m 2755 -d $(installdir)
45
+ $(INSTALL) -m 0644 --ifdiff *.html *.css $(installdir)
46
+ $(INSTALL) -m 0644 --ifdiff csug.pdf $(installdir)/csug9_9.pdf
47
+ $(INSTALL) -m 2755 -d $(installdir)/canned
48
+ $(INSTALL) -m 0644 --ifdiff canned/* $(installdir)/canned
49
+ $(INSTALL) -m 2755 -d $(installdir)/gifs
50
+ $(INSTALL) -m 0644 --ifdiff gifs/*.gif $(installdir)/gifs
51
+ ifeq ($(strip $(KATEX)),)
52
+ $(INSTALL) -m 2755 -d $(installdir)/$(mathdir)
53
+ $(INSTALL) -m 0644 --ifdiff $(mathdir)/*.gif $(installdir)/$(mathdir)
54
+ else ifneq ($(strip $(KATEX_CSS)),no)
55
+ # if already installed release_notes, share katex.css and fonts
56
+ (if $(if $(findstring Windows,$(OS)),[ ! "windows" ],[ -e $(InstallReleaseNotes)/katex/katex.css ] && [ ! -L $(InstallReleaseNotes)/katex ]) ; \
57
+ then \
58
+ (cd $(installdir); ln -s -f $(relInstallReleaseNotes)/katex katex) ; \
59
+ else \
60
+ $(INSTALL) -m 2755 -d $(installdir)/katex/fonts ; \
61
+ $(INSTALL) -m 0644 --ifdiff katex/katex.css $(installdir)/katex/katex.css ; \
62
+ $(INSTALL) -m 0644 --ifdiff katex/fonts/* $(installdir)/katex/fonts ; \
63
+ fi)
64
+ endif
65
+ ifeq ($(OS),Windows_NT)
66
+ cp $(installdir)/$(x).html $(installdir)/index.html
67
+ else
68
+ (cd $(installdir); ln -s -f $(x).html index.html)
69
+ endif
70
+
71
+
53
72
stexsrc = csug.stex title.stex copyright.stex contents.stex\
54
73
preface.stex intro.stex use.stex expeditor.stex debug.stex foreign.stex\
55
74
binding.stex control.stex objects.stex numeric.stex io.stex\
56
75
libraries.stex syntax.stex system.stex smgmt.stex threads.stex\
57
76
compat.stex bibliography.stex summary.stex
58
77
texsrc = ${stexsrc:%.stex=%.tex}
59
78
60
- moresrc = tspl4-prep.stex priminfo.ss docond.ss csug8.cls csug8.hcls csug810.clo scheme.sty csug.bib \
79
+ moresrc = tspl4-prep.stex priminfo.ss docond.ss csug8.cls csug8.hcls csug810.clo csug.bib \
61
80
setup.ss summary.ss tspl.bst
62
81
63
82
$(stexsrc) $(moresrc):
@@ -136,9 +155,14 @@ $(x).hprethirdrun: $(x).hsecondrun
136
155
cat tspl.haux >> $x.haux
137
156
touch $(x).hprethirdrun
138
157
158
+ $(x).hfourthrun: $(x).hprefourthrun
159
+ $(x).hprefourthrun: $(x).hthirdrun
160
+ cat tspl.haux >> $x.haux
161
+ touch $(x).hprefourthrun
162
+
139
163
$(x).prefirstrun: $(texsrc) csug8.cls csug810.clo
140
164
141
- $(x).firstrun: scheme.sty
165
+ $(x).firstrun:
142
166
143
167
tspl.aux: ${TSPLdir}/tspl.aux
144
168
cat ${TSPLdir}/*.aux | grep '\\newlabel' | \
0 commit comments