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