Commit fabe69d3 authored by Giovanni Campagna's avatar Giovanni Campagna

Don't use sed to fill package parameters

The advantage of using prefix instead of libdir and datadir is that
we can use configure directly, and avoid the extra complication of
the sed command.
parent 8f85cc1a
......@@ -19,7 +19,9 @@ AC_PATH_PROG(GJS, [gjs])
AC_OUTPUT([
Makefile
data/Makefile
data/my-js-app.desktop.in
libgd/Makefile
src/Makefile
src/my-js-app
po/Makefile.in
])
......@@ -9,16 +9,9 @@ css_DATA = application.css
appsdir = $(datadir)/applications
apps_DATA = my-js-app.desktop
my-js-app.desktop.in: my-js-app.desktop.in.in
$(AM_V_GEN) sed \
-e "s|[@]GJS@|$(GJS)|g" \
-e "s|[@]prefix@|$(prefix)|g" \
-e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
$< > $@
@INTLTOOL_DESKTOP_RULE@
CLEANFILES = my-js-app.desktop my-js-app.desktop.in
CLEANFILES = my-js-app.desktop
DISTCLEANFILES = my-js-app.desktop.in
include $(top_srcdir)/git.mk
......@@ -15,15 +15,6 @@ EXTRA_DIST = my-js-app.in
uninstall-local:
-rm -r $(jsdir)
my-js-app: my-js-app.in
$(AM_V_GEN) sed \
-e "s|[@]GJS@|$(GJS)|g" \
-e "s|[@]PACKAGE_NAME@|$(PACKAGE_NAME)|g" \
-e "s|[@]PACKAGE_VERSION@|$(PACKAGE_VERSION)|g" \
-e "s|[@]prefix@|$(prefix)|g" \
$< > $@ ;
@chmod +x $@
CLEANFILES = my-js-app
DISTCLEANFILES = my-js-app
include $(top_srcdir)/git.mk
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment