check:
echo $(XMLS)
- $(foreach var, $(XMLS), xmllint --noout --schema check.xsd $(var);)
+ $(foreach var, $(XMLS), xmllint --noout --schema check.xsd $(var) || exit;)
+ifneq ($(profile), )
+xsltopt = --stringparam profile $(profile)
+else
+xsltopt = --stringparam profile ''
+endif
ifneq ($(model), )
-xsltopt=--stringparam target $(MODEL)
+xsltopt += --stringparam target $(MODEL)
else
-xsltopt=--stringparam target ''
+xsltopt += --stringparam target ''
endif
+
init:
@mkdir -p report
@mkdir -p scripts
@mkdir -p include
+ @find scripts -name "*.sh" -exec rm {} \;
+ @find data -name "*.sh" -exec rm {} \;
+
# if [ -a ./scripts/all.sh ]; \
# then \
# rm ./scripts/all.sh; \
# fi;
+ cp all.sh.in ./scripts/all.sh
%.html:%.xml
xsltproc $(xsltopt) test_report.xsl $< > $@