beremiz
Clone
Summary
Browse
Changes
Graph
fix build problem when make command have trailing whitespace(s)
2017-06-27, Andrey Skvortsov
1e8900fc8ddb
fix build problem when make command have trailing whitespace(s)
whitespaces at the end are replaced with "", that causes make problem
#! gmake
yml := ../../yml2
ysl2files := $(wildcard *.ysl2)
xsltfiles := $(patsubst %.ysl2, %.xslt, $(ysl2files))
all:$(xsltfiles)
%.xslt: %.ysl2
$(yml)/yml2c -I $(yml) $< -o $@.tmp
xmlstarlet fo $@.tmp > $@
rm $@.tmp
clean:
rm -f $(xsltfiles)