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 # if [ -a ./scripts/all.sh ]; \
33 # rm ./scripts/all.sh; \
37 xsltproc $(xsltopt) test_report.xsl $< > $@
41 xsltproc $(xsltopt) create_cmd.xsl $< | sed '/^$$/d' > $@
42 cat $@ >> ./scripts/all.sh
44 xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
45 if [ -s $@ ]; then mv $@ ./scripts; fi
49 # xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
50 # if [ -s $@ ]; then mv $@ ./scripts; fi
54 xsltproc $(xsltopt) create_header.xsl $< | sed '/^$$/d' > $@
58 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' > $@
59 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' > $@
63 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' | indent > $@
64 # xsltproc $(xsltopt) create_wrapper_impl.xsl $< | sed '/^$$/d' > $@
65 # sed -i '21 i #include \<vconf.h\>' $@
66 # sed -i '22 i #include "vconf-internal-keys.h"' $@
70 vconf-internal-keys.h:
71 echo "#ifndef __VCONF_INTERNAL_KEYS_H__" > include/vconf-internal-keys.h
72 echo "#define __VCONF_INTERNAL_KEYS_H__" >> include/vconf-internal-keys.h
73 find ./include -name "*.h" -not -name "vconf-internal-keys.h" -printf "#include \"%f\" \n" | sort >> include/vconf-internal-keys.h
74 echo "#endif /* __VCONF_INTERNAL_KEYS_H__ */" >> include/vconf-internal-keys.h
77 #@rm -rf report scripts include *.pc
78 @rm -rf report scripts include
79 @find . -name "*.html" -print0 | xargs -0 -r rm
81 @find . -name "*.h" -print0 | xargs -0 -r rm
84 ./remove_whitespace.sh
86 #vconf-internal-keys.pc:vconf-internal-keys.pc.in
87 # 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
91 # cp ${INSTALL_ROOT}/scripts/*.sh ${INSTALL_ROOT}/opt/usr