-
Notifications
You must be signed in to change notification settings - Fork 123
/
Makefile
63 lines (51 loc) · 1.33 KB
/
Makefile
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
57
58
59
60
61
62
63
images = flash-ram-mm.png \
linker.png \
relocation.png \
sections.png \
stack.png \
csections.png
htmls = arm-iset.html \
asm-directives.html \
data-in-ram.html \
index.html \
using-ram.html \
arm-lab.html \
copyright.html \
lds.html \
arm-prog-model.html \
hello-arm.html \
linker.html \
c-startup.html \
exc-handle.html \
contributing.html \
credits.html \
c-library.html \
inline-assembly.html \
arm-stacks.html
sources = code/sum.s code/strlen.s code/sum-sub.s code/main.s
# available multilanguage versions see lang-*.conf files
# use make ALANG=ru override for translated version build
ALANG = en
all: $(htmls) $(images) revision.rss
gnu-eprog.epub: gnu-eprog.asciidoc $(images)
a2x -d book -f epub $<
$(htmls): gnu-eprog.xml
java -cp "/usr/share/java/saxon.jar:/usr/share/java/xslthl.jar" \
-Dxslthl.config="file://$(PWD)/xslthl-config.xml" \
com.icl.saxon.StyleSheet gnu-eprog.xml docbook.xsl
imgsizer $(htmls)
-tidy --quiet -m $(htmls) 2> /dev/null
revision.rss: gnu-eprog.xml
xsltproc rss.xsl gnu-eprog.xml | tr -s "\n" > revision.rss
%.xml: %.asciidoc $(sources)
asciidoc -a lang=$(ALANG) -b docbook $<
%.png: %.dia
dia --export=$@ --filter=png-libart $<
clean:
rm -f *.html
rm -f gnu-eprog.xml
rm -f $(images)
distclean: clean
find . -name "*~" -exec rm -f {} ";"
upload:
lftp -f upload.lftp