-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile-portability
56 lines (47 loc) · 1.87 KB
/
Makefile-portability
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
PORT_DEPS = portability-fig1.xml
PORT_LOGOS = portability-logo-debian.png \
portability-logo-freebsd.png \
portability-logo-netbsd.png \
portability-logo-omnios.svg \
portability-logo-openbsd.png \
portability-logo-osx.png \
portability-logo-solaris.png \
portability-logo-ubuntu.png
# (Order matters here.)
PORT2_DEPS = portability-fig8.xml \
portability-fig5.xml \
portability-fig4.xml \
portability-fig6.xml \
portability-fig7.xml
PORT2_MEDIA = portability-fig2.svg \
portability-fig3.svg
PORT3_MEDIA = portability-fig10.svg \
portability-fig11.svg
PORT3_IMGS = portability-fig9.jpg
DOCLEAN += $(PORT_DEPS) $(PORT2_MEDIA) $(PORT2_DEPS) $(PORT3_MEDIA)
DOINSTALL += portability.css $(PORT_LOGOS) $(PORT2_MEDIA) $(PORT3_IMGS) $(PORT3_MEDIA)
.for f in portability-fig1 portability-fig6
${f}.xml: ${f}.sh
( echo '<article data-sblg-article="1">' ; \
highlight -lf --out-format=xhtml --enclose-pre ${f}.sh ; \
echo '</article>' ; ) >$@
.endfor
portability-fig7.xml: portability-fig7.mk
( echo '<article data-sblg-article="1">' ; \
highlight -lf --out-format=xhtml --enclose-pre portability-fig7.mk ; \
echo '</article>' ; ) >$@
portability-fig4.xml: portability-fig4.h
( echo '<article data-sblg-article="1">' ; \
highlight -lf --out-format=xhtml --enclose-pre portability-fig4.h ; \
echo '</article>' ; ) >$@
.for f in portability-fig5 portability-fig8
${f}.xml: ${f}.c
( echo '<article data-sblg-article="1">' ; \
highlight -lf --out-format=xhtml --enclose-pre ${f}.c ; \
echo '</article>' ; ) >$@
.endfor
portability.html: portability.xml $(PORT_DEPS)
sblg -s cmdline -t portability.xml -o $@ $(PORT_DEPS)
portability-page2.html: portability-page2.xml $(PORT2_DEPS) $(PORT2_MEDIA)
sblg -s cmdline -t portability-page2.xml -o $@ $(PORT2_DEPS)
portability-page3.html: portability-page3.xml $(PORT3_MEDIA) $(PORT3_IMGS)