Commit 6ba7510a authored by Stef Walter's avatar Stef Walter

Better build of .service files

parent d234c5ee
NULL =
V_SED = $(V_SED_$(V))
V_SED_ = $(V_SED_$(AM_DEFAULT_VERBOSITY))
V_SED_0 = @echo " SED " $@;
SED_SUBST = sed \
-e 's,[@]datadir[@],$(datadir),g' \
-e 's,[@]libexecdir[@],$(libexecdir),g' \
-e 's,[@]libdir[@],$(libdir),g' \
-e 's,[@]includedir[@],$(includedir),g' \
-e 's,[@]datarootdir[@],$(datarootdir),g' \
-e 's,[@]sysconfdir[@],$(sysconfdir),g' \
-e 's,[@]bindir[@],$(bindir),g' \
-e 's,[@]exec_prefix[@],$(exec_prefix),g' \
-e 's,[@]prefix[@],$(prefix),g' \
-e 's,[@]PACKAGE[@],$(PACKAGE),g' \
-e 's,[@]VERSION[@],$(VERSION),g' \
$(NULL)
.desktop.in.in.desktop.in:
$(V_SED) $(SED_SUBST) $< > $@
@INTLTOOL_DESKTOP_RULE@
.service.in.service:
$(V_SED) $(SED_SUBST) $< > $@
SUFFIXES = .desktop.in .desktop.in.in .service .service.in
\ No newline at end of file
include $(top_srcdir)/Makefile.decl
localedir = $(datadir)/locale
pixmapsdir = $(datadir)/pixmaps/cryptui/
......@@ -108,10 +109,6 @@ servicedir = $(datadir)/dbus-1/services/
service_in_files = org.gnome.seahorse.service.in
service_DATA = $(service_in_files:.service.in=.service)
# Rule to make the service file with bindir expanded
$(service_DATA): $(service_in_files) Makefile
@sed -e "s|\@bindir\@|$(bindir)|" $< > $@
seahorse-marshal.h: seahorse-marshal.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) $< --header --prefix=seahorse_marshal > $@
......
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