]> matita.cs.unibo.it Git - helm.git/blob - helm/www/lambdadelta/bin/xhtbl/Makefile
planned dehyphenation of lambdadelta eventually took place!
[helm.git] / helm / www / lambdadelta / bin / xhtbl / Makefile
1 EXEC = xhtbl
2 VERSION=0.1.1
3
4 REQUIRES = str
5
6 YACCFLAGS = -v
7
8 include Makefile.common
9
10 XSLT = xsltproc
11 XHTBL = ./xhtbl.native
12
13 LDURL   = http://lambdadelta.info/
14 XSLDIR  = ../../xslt/
15 SRCDIR  = ../../web/home/
16 ETCDIR  = ../../etc/
17 HOMEDIR = ../../
18 TBLDIRS = $(SRCDIR) $(ETCDIR)
19
20 LDWS  = $(shell find $(SRCDIR) -name "*.ldw.xml")
21 TBLS  = $(shell find -L $(TBLDIRS) -name "*.tbl")
22 XSLS  = xhtbl.xsl $(patsubst %.tbl, %.xsl, $(notdir $(TBLS)))
23 HTMLS = $(patsubst %.ldw.xml, $(HOMEDIR)%.html, $(notdir $(LDWS)))
24 LDWEB = ld_web.xsl ld_web_root.xsl ld_web_library.xsl
25
26 $(HOMEDIR)%.html: BASEURL = --stringparam baseurl $(LDURL)
27
28 www: $(HTMLS)
29
30 $(XSLS:%=$(XSLDIR)%): $(TBLS) $(XHTBL)
31         @echo "  XHTBL *.tbl"
32         $(H)$(XHTBL) -O $(XSLDIR) $(TBLS)
33
34 $(HOMEDIR)%.html: $(SRCDIR)%.ldw.xml $(XSLS:%=$(XSLDIR)%) $(LDWEB:%=$(XSLDIR)%)
35         @echo "  XSLT $(notdir $<)"
36         $(H)$(XSLT) -o $@ $(BASEURL) $(XSLDIR)ld_web.xsl $<