4 lint-xml index lddl install-xml \
5 test-html html install-html \
6 install-jed install-bib \
8 LDDLURL = http://lambda-delta.info/static/lddl
14 HTMLDIR = $(HOME)/public_html/lddl
15 JEDDIR = $(HOME)/mps/jed
16 BIBDIR = $(HOME)/texmf/bibtex/bib
19 REMOTE = helm.cs.unibo.it
20 RDIR = /projects/helm/public_html/lambda_delta
21 RXMLDIR = $(REMOTE):$(RDIR)/xml
22 RHTMLDIR = $(REMOTE):$(RDIR)/static/lddl
24 SLS = helena.sl automath.sl
25 BIB = lambda_delta.bib
27 XMLS = brg_si/grundlagen/l/not.ld.xml \
28 brg_si/grundlagen/l/et.ld.xml \
29 brg_si/grundlagen/l/e/st/eq/landau/n/rt/rp/r/c/8283/t234.ld.xml \
30 brg_si/grundlagen/l/e/pairis1.ld.xml \
31 brg_si/grundlagen/l/e/st/eq/landau/n/327/t25.ld.xml \
32 crg_si/grundlagen/l/not.ld.xml \
33 crg_si/grundlagen/l/et.ld.xml \
34 crg_si/grundlagen/l/e/st/eq/landau/n/rt/rp/r/c/8283/t234.ld.xml \
35 crg_si/grundlagen/l/e/pairis1.ld.xml \
36 crg_si/grundlagen/l/e/st/eq/landau/n/327/t25.ld.xml \
37 brg_si/grundlagen/ccs.ldc.xml
39 XMLLINT = xmllint --noout
44 lint-xml: $(XMLS:%=$(XMLDIR)/%)
46 $(H)$(XMLLINT) --valid $^
48 $(ETCDIR)/make-html.sh $(XMLDIR)/index.txt index:
49 @echo " GENERATE INDEXES"
50 $(H)find $(XMLDIR) -name "*.ld.xml" | sed s/.xml//g | sed s/xml/ld:/g > $(XMLDIR)/index.txt
51 $(H)sed "s/^/make --no-print-directory /" $(XMLDIR)/index.txt | sed s.ld:/.. > $(ETCDIR)/make_html.sh
53 lddl: $(ETCDIR)/exclude.txt index
54 @echo " GENERATE lddl.tar.bz2"
55 $(H)tar -cjf $(DOWNDIR)/lddl.tar.bz2 -X $< $(XMLDIR)
57 install-xml: $(XMLDIR)/index.txt
59 $(H)scp -r $< $(XMLDIR)/brg_si/ $(XMLDIR)/crg_si/ $(RXMLDIR)
62 @$(MAKE) --no-print-directory $(XMLS:%.xml=%)
64 html: $(ETCDIR)/make_html.sh
68 install-html: $(ETCDIR)/make_html.sh
70 $(H)scp -r $(HTMLDIR)/* $(RHTMLDIR)
72 install-jed: $(SLS:%=$(JEDDIR)/%)
73 @echo " INSTALL $(SLS)"
76 install-bib: $(BIB:%=$(BIBDIR)/%)
77 @echo " INSTALL $(BIB)"
79 $(H)scp $< $(DOWNDIR)/$(BIB:%.bib=%.txt)
82 $(H)$(MAKE) --no-print-directory -C $(XHTBLDIR) www
85 @echo " UPDATE $(REMOTE):$(RDIR)"
86 $(H)ssh $(REMOTE) "svn up $(RDIR)"
88 %.ld: BASEURL = --stringparam baseurl $(LDDLURL)
92 $(H)mkdir -p $(HTMLDIR)/$(@D)
93 $(H)$(XSLT) -o $(HTMLDIR)/$@.html $(BASEURL) $(XSLTDIR)/lddl.xsl $(XMLDIR)/$@.xml