2012-09-02 21:23:50 -04:00
|
|
|
NULL =
|
2013-07-02 02:54:53 -04:00
|
|
|
BUILT_SOURCES =
|
2012-02-11 12:44:35 -05:00
|
|
|
|
|
|
|
misc/config.js: misc/config.js.in Makefile
|
2012-02-22 22:29:50 -05:00
|
|
|
[ -d $(@D) ] || $(mkdir_p) $(@D) ; \
|
2012-02-11 12:44:35 -05:00
|
|
|
sed -e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
|
|
|
|
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
|
|
|
|
-e "s|[@]HAVE_BLUETOOTH@|$(HAVE_BLUETOOTH)|g" \
|
2014-02-11 17:20:15 -05:00
|
|
|
-e "s|[@]HAVE_NETWORKMANAGER@|$(HAVE_NETWORKMANAGER)|g" \
|
2012-02-11 12:44:35 -05:00
|
|
|
-e "s|[@]GETTEXT_PACKAGE@|$(GETTEXT_PACKAGE)|g" \
|
|
|
|
-e "s|[@]datadir@|$(datadir)|g" \
|
|
|
|
-e "s|[@]libexecdir@|$(libexecdir)|g" \
|
|
|
|
-e "s|[@]sysconfdir@|$(sysconfdir)|g" \
|
|
|
|
$< > $@
|
|
|
|
|
2014-06-05 15:00:01 -04:00
|
|
|
js_resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --sourcedir=$(builddir) --generate-dependencies $(srcdir)/js-resources.gresource.xml)
|
2013-07-02 02:54:53 -04:00
|
|
|
js-resources.h: js-resources.gresource.xml $(js_resource_files) misc/config.js
|
2013-10-30 14:00:58 -04:00
|
|
|
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --sourcedir=$(builddir) --generate --c-name shell_js_resources $<
|
2013-07-02 02:54:53 -04:00
|
|
|
js-resources.c: js-resources.gresource.xml $(js_resource_files) misc/config.js
|
2013-10-30 14:00:58 -04:00
|
|
|
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --sourcedir=$(builddir) --generate --c-name shell_js_resources $<
|
2013-07-02 02:54:53 -04:00
|
|
|
|
|
|
|
js_built_sources = js-resources.c js-resources.h
|
|
|
|
|
|
|
|
BUILT_SOURCES += $(js_built_sources)
|
|
|
|
|
|
|
|
all-local: $(js_built_sources)
|
|
|
|
|
|
|
|
js_resource_dist_files = $(filter-out misc/config.js, $(js_resource_files))
|
2010-09-15 11:58:48 -04:00
|
|
|
|
2013-07-02 02:54:53 -04:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(js_resource_dist_files) \
|
|
|
|
js-resources.gresource.xml \
|
|
|
|
misc/config.js.in \
|
2012-09-02 21:23:50 -04:00
|
|
|
$(NULL)
|
2013-11-13 15:12:14 -05:00
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
$(js_built_sources) \
|
|
|
|
$(NULL)
|