Change read privilege about network ip
[platform/core/appfw/vconf-internal-keys.git] / Makefile
index 7e4cba9..f7276f6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,21 +17,31 @@ XMLS=$(wildcard data/*.xml)
 
 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 $< > $@