5 REQUIRES = unix str helm-ng_kernel
7 OCAMLOPTIONS = -rectypes
11 CLEAN = etc/log.txt etc/profile.txt
13 TAGS = test-si test-si-fast profile xml-si xml-si-crg html test-html \
14 install-html install-lddl install-dtd install-xml instal-css
17 XMLS = xml/brg-si/grundlagen/l/not.ld.xml \
18 xml/brg-si/grundlagen/l/et.ld.xml \
19 xml/brg-si/grundlagen/l/e/st/eq/landau/n/rt/rp/r/c/8283/t234.ld.xml \
20 xml/brg-si/grundlagen/l/e/pairis1.ld.xml \
21 xml/brg-si/grundlagen/l/e/st/eq/landau/n/327/t25.ld.xml \
22 xml/crg-si/grundlagen/l/not.ld.xml \
23 xml/crg-si/grundlagen/l/et.ld.xml \
24 xml/crg-si/grundlagen/l/e/st/eq/landau/n/rt/rp/r/c/8283/t234.ld.xml \
25 xml/crg-si/grundlagen/l/e/pairis1.ld.xml \
26 xml/crg-si/grundlagen/l/e/st/eq/landau/n/327/t25.ld.xml \
27 xml/brg-si/grundlagen/ccs.ldc.xml
29 include Makefile.common
31 INPUT = examples/grundlagen/grundlagen.aut
33 SLS = helena.sl automath.sl
35 test-si: $(MAIN).opt etc
36 @echo " HELENA -p -o -c $(INPUT)"
37 $(H)./$(MAIN).opt -p -o -c -S 3 $(O) $(INPUT) > etc/log.txt
39 test-si-fast: $(MAIN).opt etc
40 @echo " HELENA -o -q $(INPUT)"
41 $(H)./$(MAIN).opt -o -q -S 1 $(O) $(INPUT) > etc/log.txt
43 profile: $(MAIN).opt etc
44 @echo " HELENA -o -q $(INPUT) (30 TIMES)"
46 $(H)for T in `seq 30`; do ./$(MAIN).opt -o -q -s 3 -S 1 $(O) $(INPUT) >> etc/log.txt; done
47 $(H)grep "at exit" etc/log.txt | sort | uniq > etc/profile-new.txt
49 xml-si: $(MAIN).opt etc
50 @echo " HELENA -o -x -s 2 $(INPUT)"
51 $(H)./$(MAIN).opt -o -x -s 2 -S 1 $(INPUT) > etc/log.txt
53 xml-si-crg: $(MAIN).opt etc
54 @echo " HELENA -o -x -s 1 $(INPUT)"
55 $(H)./$(MAIN).opt -o -x -s 1 -S 1 $(INPUT) > etc/log.txt
61 %.ld: BASEURL = --stringparam baseurl $(LDDLURL)
65 $(H)mkdir -p $(LOCALLDDLDIR)/$(@D)
66 $(H)$(XSLT) -o $(LOCALLDDLDIR)/$@.html $(BASEURL) xml/ld-html.xsl xml/$@.xml
71 etc/make-html.sh xml/index.txt index:
72 @echo " GENERATE INDEXES"
73 $(H)find xml -name "*.ld.xml" | sed s/.xml//g | sed s/xml/ld:/g > xml/index.txt
74 $(H)sed "s/^/make --no-print-directory /" xml/index.txt | sed s.ld:/.. > etc/make-html.sh
76 html: etc/make-html.sh
81 @$(MAKE) --no-print-directory $(XMLS:xml/%.xml=%)
83 install-html: etc/make-html.sh
85 $(H)scp -r $(LOCALLDDLDIR)/* $(LDDLDIR)
88 @echo " INSTALL lddl.tar.bz2"
89 $(H)tar -cjf etc/lddl.tar.bz2 -X etc/exclude.txt xml
90 $(H)scp etc/lddl.tar.bz2 $(DOWNDIR)
92 install-dtd: xml/ld.dtd
96 install-css: xml/ld-html.css
100 install-xml: etc/make-html.sh
102 $(H)scp -r xml/index.txt xml/ld.dtd xml/brg-si/ xml/crg-si/ $(XMLDIR)
105 @echo " INSTALL *.png *.ico"
106 $(H)scp icons/*.png icons/*.ico $(DOWNDIR)
109 @echo " INSTALL $(SLS)"
110 $(H)scp $(SLS:%=$(HOME)/jed/%) $(DOWNDIR)