2 #all:init allcmd allheader allhtml vconf-internal-keys.pc
3 #all:init allcmd allheader allhtml allwrapper
4 #all:init allcmd allhtml allheader allwrapper allwrapper_impl vconf-internal-keys.h endproc
5 #all:init allcmd postproc allhtml allheader vconf-internal-keys.h endproc
6 all:init allcmd allhtml allheader vconf-internal-keys.h endproc
8 allcmd: $(shell find . -name "*.xml" | sort | sed 's/xml/sh/')
9 #allcmd2: $(shell find . -name "*.xml" | sed 's/xml/sh2/')
10 allheader: $(shell find . -name "*.xml" | sort | sed 's/xml/h/')
11 allhtml: $(shell find . -name "*.xml" | sort | sed 's/xml/html/')
12 #allwrapper: $(shell find . -name "*.xml" | sed 's/.xml/_wrapper.h/')
13 #allwrapper_impl: $(shell find . -name "*.xml" | sed 's/.xml/_wrapper.c/')
16 XMLS=$(wildcard data/*.xml)
20 $(foreach var, $(XMLS), xmllint --noout --schema check.xsd $(var) || exit;)
23 xsltopt=--stringparam target $(MODEL)
25 xsltopt=--stringparam target ''
31 @find scripts -name "*.sh" -exec rm {} \;
32 @find data -name "*.sh" -exec rm {} \;
34 # if [ -a ./scripts/all.sh ]; \
36 # rm ./scripts/all.sh; \
38 cp all.sh.in ./scripts/all.sh
41 xsltproc $(xsltopt) test_report.xsl $< > $@
45 xsltproc $(xsltopt) create_cmd.xsl $< | sed '/^$$/d' > $@
46 cat $@ >> ./scripts/all.sh
48 xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
49 if [ -s $@ ]; then mv $@ ./scripts; fi
53 # xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
54 # if [ -s $@ ]; then mv $@ ./scripts; fi
58 xsltproc $(xsltopt) create_header.xsl $< | sed '/^$$/d' > $@
62 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' > $@
63 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' > $@
67 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' | indent > $@
68 # xsltproc $(xsltopt) create_wrapper_impl.xsl $< | sed '/^$$/d' > $@
69 # sed -i '21 i #include \<vconf.h\>' $@
70 # sed -i '22 i #include "vconf-internal-keys.h"' $@
74 vconf-internal-keys.h:
75 echo "#ifndef __VCONF_INTERNAL_KEYS_H__" > include/vconf-internal-keys.h
76 echo "#define __VCONF_INTERNAL_KEYS_H__" >> include/vconf-internal-keys.h
77 find ./include -name "*.h" -not -name "vconf-internal-keys.h" -printf "#include \"%f\" \n" | sort >> include/vconf-internal-keys.h
78 echo "#endif /* __VCONF_INTERNAL_KEYS_H__ */" >> include/vconf-internal-keys.h
81 #@rm -rf report scripts include *.pc
82 @rm -rf report scripts include
83 @find . -name "*.html" -print0 | xargs -0 -r rm
85 @find . -name "*.h" -print0 | xargs -0 -r rm
88 ./remove_whitespace.sh
90 #vconf-internal-keys.pc:vconf-internal-keys.pc.in
91 # sed -e 's/@PREFIX@/hello/' -e 's/@LIBDIR@/hello/' -e 's/@EXEC_PREFIX@/hello/' -e 's/@INCLUDEDIR@/hello/' -e 's/@VERSION@/hello/' vconf-internal-keys.pc.in > vconf-internal-keys.pc
95 # cp ${INSTALL_ROOT}/scripts/*.sh ${INSTALL_ROOT}/opt/usr