Fix generation of config.js

* Create the misc/ subdir of the build dir if it doesn't exist
* Add config.js to CLEANFILES
This commit is contained in:
Owen W. Taylor 2012-02-22 22:29:50 -05:00
parent dd8a53d5e0
commit 30e4f80894

View File

@ -1,7 +1,9 @@
EXTRA_DIST = misc/config.js.in
CLEANFILES = misc/config.js
misc/config.js: misc/config.js.in Makefile
[ -d $(@D) ] || $(mkdir_p) $(@D) ; \
sed -e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
-e "s|[@]GJS_VERSION@|$(GJS_VERSION)|g" \