/
Makefile
48 lines (41 loc) · 2.19 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
validator = ../../shared/tools/checkxml
build: bgf_pretty.bgf xbgf.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeIntro.xldf xbgf.ldf xbgf1.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeFoldSection.xldf xbgf1.ldf xbgf2.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeRefSection.xldf xbgf2.ldf xbgf3.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeIncSection.xldf xbgf3.ldf xbgf4.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeDecSection.xldf xbgf4.ldf xbgf5.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeRevSections.xldf xbgf5.ldf xbgf6.ldf
python ../../topics/transformation/xldf/xldf.py xldf/completeDecorSection.xldf xbgf6.ldf xbgf7.ldf
xsltproc ../../shared/xsl/ldf2tex.xslt xbgf7.ldf > xbgf.tex
pdflatex -interaction=batchmode xbgf
pdflatex -interaction=batchmode xbgf
bgf_pretty.bgf:
../../shared/tools/xsd2bgf ../../shared/xsd/bgf.xsd bgf.bgf
../../shared/tools/xbgf beautify_bgf.xbgf bgf.bgf bgf_pretty.bgf
xbgf.ldf:
../../shared/tools/xsd2bgf ../../shared/xsd/xbgf.xsd xbgf.bgf
../../shared/tools/xbgf beautify_xbgf.xbgf xbgf.bgf xbgf_1.bgf
../../topics/extraction/xsd2ldf/ldfgen.py ../../shared/xsd/xbgf.xsd xbgf_1.bgf xbgf.ldf
rebuild:
make clean
make samples
make build
samples:
cp ../transformation/xbgf/tests/distribute1.bgf distribute_before.bgf
cp ../transformation/xbgf/tests/distribute1.baseline distribute_after.bgf
../../shared/tools/xbgf2xbnf ../transformation/xbgf/tests/distribute1.xbgf distribute.xbnf
../../shared/tools/xbgf2xbnf bnf/xbgf/designate.xbgf designate.xbnf
../../shared/tools/xbgf2xbnf bnf/xbgf/preferBnf.xbgf preferBnf.xbnf
../../shared/tools/xbgf2xbnf bnf/xbgf/refactorBnf.xbgf refactorBnf.xbnf
../../shared/tools/xbgf2xbnf bnf/xbgf/stripTerminals.xbgf stripTerminals.xbnf
../../shared/tools/xbgf2xbnf bnf/xbgf/stripWhitespace.xbgf stripWhitespace.xbnf
clean:
rm -f xbgf*.bgf xbgf*.ldf xbgf.html xbgf.fo xbgf.pdf *.xbnf
rm -f bgf*.bgf ldf*.bgf ldf*.ldf ldf.fo ldf.pdf
rm -f *.aux *.log *.toc *.tex
rm -f distribute_*.bgf
check:
ls -1 *.xbgf | xargs -n1 ${validator} xbgf
ls -1 *.bgf | xargs -n1 ${validator} bgf
ls -1 *.ldf | xargs -n1 ${validator} ldf