Laurent@1353: #! gmake Laurent@1353: Edouard@2627: # Makefile to generate XSLT stylesheets from ysl2 files in the same directory Edouard@2627: Edouard@2627: # This uses YML2. Edouard@2627: # hg clone https://pep.foundation/dev/repos/yml2/ Edouard@2627: Edouard@2627: # It should be just fine if yml2 is cloned just asside beremiz Edouard@2627: # otherwise, point yml2path to yml2 source directory Edouard@2627: # make yml2path=path/to/yml/dir Edouard@2627: Edouard@2627: yml2path ?= $(abspath ../../yml2) Edouard@2627: Laurent@1353: ysl2files := $(wildcard *.ysl2) Laurent@1353: xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files)) Laurent@1353: Laurent@1353: all:$(xsltfiles) Laurent@1353: Edouard@2627: %.xslt: %.ysl2 ../yslt_noindent.yml2 Edouard@2627: $(yml2path)/yml2c -I $(yml2path):../ $< -o $@.tmp Laurent@1353: xmlstarlet fo $@.tmp > $@ Laurent@1353: rm $@.tmp Laurent@1353: Laurent@1353: clean: edouard@1936: rm -f $(xsltfiles)