[ACR-1409] Add VCONFKEY_SETAPPL_ROTARY_EVENT_ENABLED_BOOL
[platform/core/appfw/vconf-internal-keys.git] / Makefile
index 3e0c4f2..9837361 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -5,9 +5,10 @@
 #all:init allcmd postproc allhtml allheader vconf-internal-keys.h endproc
 all:init allcmd allhtml allheader vconf-internal-keys.h endproc
 
-allcmd: $(shell find . -name "*.xml" | sed 's/xml/sh/')
-allheader: $(shell find . -name "*.xml" | sed 's/xml/h/')
-allhtml: $(shell find . -name "*.xml" | sed 's/xml/html/')
+allcmd: $(shell find . -name "*.xml" | sort | sed 's/xml/sh/')
+#allcmd2: $(shell find . -name "*.xml" | sed 's/xml/sh2/')
+allheader: $(shell find . -name "*.xml" | sort | sed 's/xml/h/')
+allhtml: $(shell find . -name "*.xml" | sort | sed 's/xml/html/')
 #allwrapper: $(shell find . -name "*.xml" | sed 's/.xml/_wrapper.h/')
 #allwrapper_impl: $(shell find . -name "*.xml" | sed 's/.xml/_wrapper.c/')
 
@@ -16,7 +17,7 @@ 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 ($(model), )
 xsltopt=--stringparam target $(MODEL)
@@ -27,10 +28,14 @@ init:
        @mkdir -p report
        @mkdir -p scripts
        @mkdir -p include
-       if [ -a ./scripts/all.sh ]; \
-       then \
-               rm ./scripts/all.sh; \
-       fi;
+       @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 $< > $@
@@ -40,6 +45,14 @@ init:
        xsltproc $(xsltopt) create_cmd.xsl $< | sed '/^$$/d' > $@
        cat $@ >> ./scripts/all.sh
        rm $@
+       xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
+       if [ -s $@ ]; then mv $@ ./scripts; fi
+
+
+#%.sh2:%.xml
+#      xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
+#      if [ -s $@ ]; then mv $@ ./scripts; fi
+
 
 %.h:%.xml
        xsltproc $(xsltopt) create_header.xsl $< | sed '/^$$/d' > $@
@@ -67,12 +80,11 @@ vconf-internal-keys.h:
 clean:
        #@rm -rf report scripts include *.pc
        @rm -rf report scripts include
-       @find . -name "*.html" | xargs rm
-       @find . -name "*.sh" | xargs rm
-       @find . -name "*.h" | xargs rm
+       @find . -name "*.html" -print0 | xargs -0 -r rm
+       @rm data/vconf-*.sh
+       @find . -name "*.h" -print0 | xargs -0 -r rm
 
 endproc:
-       sed -i '1 i #!/bin/bash' ./scripts/all.sh
        ./remove_whitespace.sh
 
 #vconf-internal-keys.pc:vconf-internal-keys.pc.in