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 allhtml allheader vconf-internal-keys.h endproc
7 allcmd: $(shell find . -name "*.xml" | sed 's/xml/sh/')
8 allheader: $(shell find . -name "*.xml" | sed 's/xml/h/')
9 allhtml: $(shell find . -name "*.xml" | sed 's/xml/html/')
10 #allwrapper: $(shell find . -name "*.xml" | sed 's/.xml/_wrapper.h/')
11 #allwrapper_impl: $(shell find . -name "*.xml" | sed 's/.xml/_wrapper.c/')
19 # cp ./include2/vconf-internal-keys.h ./include/
22 xsltproc test_report.xsl $< > $@
27 xsltproc create_cmd.xsl $< | sed '/^$$/d' > $@
28 # xsltproc create_get_cmd.xsl $< | sed '/^$$/d' > $@
32 # xsltproc create_header.xsl $< | sed '/^$$/d' | indent > $@
33 xsltproc create_header.xsl $< | sed '/^$$/d' > $@
37 # xsltproc create_wrapper.xsl $< | sed '/^$$/d' | indent > $@
38 # xsltproc create_wrapper.xsl $< | sed '/^$$/d' > $@
42 # xsltproc create_wrapper.xsl $< | sed '/^$$/d' | indent > $@
43 # xsltproc create_wrapper_impl.xsl $< | sed '/^$$/d' > $@
44 # sed -i '21 i #include \<vconf.h\>' $@
45 # sed -i '22 i #include "vconf-internal-keys.h"' $@
49 vconf-internal-keys.h:
50 echo "#ifndef __VCONF_INTERNAL_KEYS_H__" > include/vconf-internal-keys.h
51 echo "#define __VCONF_INTERNAL_KEYS_H__" >> include/vconf-internal-keys.h
52 find ./include -name "*.h" -not -name "vconf-internal-keys.h" -printf "#include \"%f\" \n" | sort >> include/vconf-internal-keys.h
53 echo "#endif /* __VCONF_INTERNAL_KEYS_H__ */" >> include/vconf-internal-keys.h
56 #@rm -rf report scripts include *.pc
57 @rm -rf report scripts include
58 @find . -name "*.html" | xargs rm
59 @find . -name "*.sh" | xargs rm
60 @find . -name "*.h" | xargs rm
63 ./remove_whitespace.sh
65 #vconf-internal-keys.pc:vconf-internal-keys.pc.in
66 # 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
70 # cp ${INSTALL_ROOT}/scripts/*.sh ${INSTALL_ROOT}/opt/usr