summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorJens Georg <mail@jensge.org>2016-08-17 16:59:30 +0200
committerJens Georg <mail@jensge.org>2016-08-17 16:59:30 +0200
commitc63983ea50b8c224787e9dc1e670d2e2104fbf7d (patch)
tree9d4350cbd2e12dacdab79e895c8b4aba9d8d3be5 /data
parent0bc874c1026b9619a8e492fdb00a0eaa0c3f8d2f (diff)
downloadgupnp-tools-c63983ea50b8c224787e9dc1e670d2e2104fbf7d.tar.gz
Fix desktop file generation
Signed-off-by: Jens Georg <mail@jensge.org>
Diffstat (limited to 'data')
-rw-r--r--data/Makefile.am7
1 files changed, 4 insertions, 3 deletions
diff --git a/data/Makefile.am b/data/Makefile.am
index f682cd6..7d40833 100644
--- a/data/Makefile.am
+++ b/data/Makefile.am
@@ -17,12 +17,13 @@ endif
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
desktop_in_in_files = $(desktop_in_files:.desktop.in=.desktop.in.in)
-$(desktop_in_files): $(desktop_in_in_files)
+%.desktop.in: %.desktop.in.in
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
# Substitute variables in a Desktop Entry file.
-$(desktop_DATA): $(desktop_in_files)
- $(AM_V_GEN) $(SED) -e 's|@VERSION[@]|$(VERSION)|g' $< > $@
+%.desktop : %.desktop.in
+ $(AM_V_GEN) $(SED) -e 's|@VERSION[@]|$(VERSION)|g' \
+ -e 's|@PKGDATADIR[@]|$(PKGDATADIR)|g' $< > $@
EXTRA_DIST = $(desktop_in_in_files) gupnp-av-cp.ui.in $(desktop_in_files)