# Typing 'make' will result in this file being used to build the # project. Typing 'make clean' will delete all these built files. # © 2002-2017 Steve White .SUFFIXES: .dtd .xml .xsl .html XSL = keyboard.xsl IN_DIR=mappings/ OUT_DIR=html/ # Experimented with a couple of XSLT processors CC = java -classpath /usr/share/maven-repo/xalan/xalan/debian/xalan-debian.jar \ org.apache.xalan.xslt.Process -xsl IN = -in CC = xsltproc IN = #CCFLAGS = -v keyboard = Arabic Croatian Czech dvorak French German Greek Hebrew Hindi \ Korean Russian Tamil Tamil_phon Thai Turkish OBJS = $(keyboard:=.html) # Build a particular HTML file %.html: $(IN_DIR)%.xml $(XSL) @echo Making $(OUT_DIR)$@ from $< @# The `xmllint' tool validates the XML file against the DTD. @xmllint --valid --noout $<; @# Then `xsltproc' builds the HTML. @$(CC) $(CCFLAGS) $(XSL) $(IN) $< > $(OUT_DIR)$@ # Build all HTML files all: $(OBJS) # Delete all built files clean: cd $(OUT_DIR); rm $(OBJS)