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 profile $(profile)
25 xsltopt = --stringparam profile ''
28 xsltopt += --stringparam target $(MODEL)
30 xsltopt += --stringparam target ''
37 @find scripts -name "*.sh" -exec rm {} \;
38 @find data -name "*.sh" -exec rm {} \;
40 # if [ -a ./scripts/all.sh ]; \
42 # rm ./scripts/all.sh; \
44 cp all.sh.in ./scripts/all.sh
47 xsltproc $(xsltopt) test_report.xsl $< > $@
51 xsltproc $(xsltopt) create_cmd.xsl $< | sed '/^$$/d' > $@
52 cat $@ >> ./scripts/all.sh
54 xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
55 if [ -s $@ ]; then mv $@ ./scripts; fi
59 # xsltproc $(xsltopt) create_init_script.xsl $< | sed '/^$$/d' > $@
60 # if [ -s $@ ]; then mv $@ ./scripts; fi
64 xsltproc $(xsltopt) create_header.xsl $< | sed '/^$$/d' > $@
68 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' > $@
69 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' > $@
73 # xsltproc $(xsltopt) create_wrapper.xsl $< | sed '/^$$/d' | indent > $@
74 # xsltproc $(xsltopt) create_wrapper_impl.xsl $< | sed '/^$$/d' > $@
75 # sed -i '21 i #include \<vconf.h\>' $@
76 # sed -i '22 i #include "vconf-internal-keys.h"' $@
80 vconf-internal-keys.h:
81 echo "#ifndef __VCONF_INTERNAL_KEYS_H__" > include/vconf-internal-keys.h
82 echo "#define __VCONF_INTERNAL_KEYS_H__" >> include/vconf-internal-keys.h
83 find ./include -name "*.h" -not -name "vconf-internal-keys.h" -printf "#include \"%f\" \n" | sort >> include/vconf-internal-keys.h
84 echo "#endif /* __VCONF_INTERNAL_KEYS_H__ */" >> include/vconf-internal-keys.h
87 #@rm -rf report scripts include *.pc
88 @rm -rf report scripts include
89 @find . -name "*.html" -print0 | xargs -0 -r rm
91 @find . -name "*.h" -print0 | xargs -0 -r rm
94 ./remove_whitespace.sh
96 #vconf-internal-keys.pc:vconf-internal-keys.pc.in
97 # 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
101 # cp ${INSTALL_ROOT}/scripts/*.sh ${INSTALL_ROOT}/opt/usr