Commit d4c51867 authored by Daiki Ueno's avatar Daiki Ueno

build: Fix issues on desktop file generation

This fixes a couple issues in commit 8818e939:
- intermidiate files are left after "make distcheck"
- to incorporate translations, it didn't properly use a suffix rule
parent 35a01f8c
......@@ -133,12 +133,12 @@ SED_SUBST = sed \
-e 's,[@]VERSION[@],$(VERSION),g' \
$(NULL)
SUFFIXES = .desktop.in .desktop.in.in .service .service.in
SUFFIXES = .desktop .desktop.in .desktop.in.in .service .service.in
.service.in.service:
$(V_SED) ( $(SED_SUBST) $< > $@.tmp ) && mv $@.tmp $@
.desktop.in.in.desktop.in:
.desktop.in.desktop:
$(V_SED) ( $(SED_SUBST) $< > $@.tmp ) && mv $@.tmp $@
all-local:
......
......@@ -44,11 +44,12 @@ desktop_in_in_files = \
$(NULL)
desktop_in_files = $(desktop_in_in_files:.desktop.in.in=.desktop.in)
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
$(desktop_DATA): $(desktop_in_files)
.desktop.in.in.desktop.in:
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
EXTRA_DIST += \
$(service_in_files) \
$(desktop_in_files) \
$(desktop_in_in_files)
CLEANFILES += \
......
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