Change location vconf value
[platform/core/appfw/vconf-internal-keys.git] / Makefile
1 #all:html cmd header
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
6
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/')
12
13
14 init:
15         @mkdir -p report
16         @mkdir -p scripts
17         @mkdir -p include
18 #       @mkdir -p wrapper
19 #       cp ./include2/vconf-internal-keys.h ./include/
20
21 %.html:%.xml
22         xsltproc test_report.xsl $< > $@
23         mv $@ ./report
24
25
26 %.sh:%.xml
27         xsltproc create_cmd.xsl $< | sed '/^$$/d'   > $@ 
28 #       xsltproc create_get_cmd.xsl $< | sed '/^$$/d'   > $@ 
29         mv $@ ./scripts
30
31 %.h:%.xml
32 #       xsltproc create_header.xsl $< | sed '/^$$/d' | indent   > $@
33         xsltproc create_header.xsl $< | sed '/^$$/d' > $@
34         mv $@ ./include
35
36 #%_wrapper.h:%.xml
37 #       xsltproc create_wrapper.xsl $< | sed '/^$$/d' | indent   > $@
38 #       xsltproc create_wrapper.xsl $< | sed '/^$$/d'   > $@
39 #       mv $@ ./include
40
41 #%_wrapper.c:%.xml
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"' $@
46 #       sed -i '23i\\' $@
47 #       mv $@ ./wrapper
48
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
54
55 clean:
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 
61
62 endproc:
63         ./remove_whitespace.sh
64
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
67
68 install:
69 #               cp cmd.sh /opt/usr
70 #               cp ${INSTALL_ROOT}/scripts/*.sh ${INSTALL_ROOT}/opt/usr