Versioning.
[WebKit-https.git] / Source / WebInspectorUI / GNUmakefile.am
1 ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml: GNUmakefile \
2         $(WebInspectorUI)/UserInterface/*.html \
3         $(WebInspectorUI)/UserInterface/*.js \
4         $(WebInspectorUI)/UserInterface/*.css \
5         $(WebInspectorUI)/UserInterface/Images/*.png \
6         $(WebInspectorUI)/UserInterface/Images/*.svg \
7         $(WebInspectorUI)/UserInterface/External/CodeMirror/* \
8         $(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js
9         $(AM_V_GEN)
10         $(AM_V_at)mkdir -p ${GENSOURCES_WEBINSPECTOR_UI}
11         $(AM_V_at)echo '<?xml version="1.0" encoding="UTF-8"?>' > ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
12         $(AM_V_at)echo '<gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
13         $(AM_V_at)echo '  <gresource prefix="/org/webkitgtk/inspector">' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
14         $(AM_V_at)\
15                 basepath=`echo $(WebInspectorUI)/ | sed 's,^./,,g'`; \
16                 for file in $^; do \
17                         if [ "$$file" = "GNUmakefile" ]; then continue; fi; \
18                         file=`echo $$file | sed "s,$$basepath,,g"`; \
19                         echo "    <file>$$file</file>" >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml; \
20                 done
21         $(AM_V_at)echo '  </gresource>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
22         $(AM_V_at)echo '</gresources>' >> ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
23
24 ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c: DerivedSources/WebInspectorUI/GResourceBundle.xml
25         $(AM_V_GEN)
26         $(AM_V_at)glib-compile-resources --generate --sourcedir=$(WebInspectorUI) \
27                 --target=${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.c ${GENSOURCES_WEBINSPECTOR_UI}/GResourceBundle.xml
28
29 BUILT_SOURCES += \
30         DerivedSources/WebInspectorUI/GResourceBundle.xml
31
32 webcore_built_sources += \
33         DerivedSources/WebInspectorUI/GResourceBundle.c
34
35 EXTRA_DIST += \
36         $(WebInspectorUI)/Localizations/en.lproj/localizedStrings.js \
37         $(shell ls $(WebInspectorUI)/UserInterface/*.html) \
38         $(shell ls $(WebInspectorUI)/UserInterface/*.js) \
39         $(shell ls $(WebInspectorUI)/UserInterface/*.css) \
40         $(shell ls $(WebInspectorUI)/UserInterface/Images/*.png) \
41         $(shell ls $(WebInspectorUI)/UserInterface/Images/*.svg) \
42         $(shell ls $(WebInspectorUI)/UserInterface/External/CodeMirror/*)
43