hello-c-gnome3: Simplify the Desktop Entry rules

* hello-c-gnome3/Makefile.am (hello.desktop.in): Don't use a
temporary file.
(hello.desktop): Likewise.
This commit is contained in:
Daiki Ueno 2015-10-08 14:49:30 +09:00
parent 3231fe8803
commit ac1632889d
2 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,9 @@
2015-10-08 Daiki Ueno <ueno@gnu.org>
* hello-c-gnome3/Makefile.am (hello.desktop.in): Don't use a
temporary file.
(hello.desktop): Likewise.
2015-09-11 Daiki Ueno <ueno@gnu.org>
* gettext 0.19.6 released.

View File

@ -45,12 +45,11 @@ desktop_DATA = hello.desktop
# processed earlier than the variable substitution below. Otherwise,
# the 'msgfmt' command will be required at compile-time.
hello.desktop.in: hello.desktop.in.in
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -o $@-t \
-d $(top_srcdir)/po && mv $@-t $@
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
# Substitute variables in a Desktop Entry file.
hello.desktop: hello.desktop.in
@rm -f $@ $@-t
$(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@-t && mv $@-t $@
$(AM_V_GEN) sed -e 's|@bindir[@]|$(bindir)|g' $< > $@
CLEANFILES = $(BUILT_SOURCES) hello.desktop $(desktop_DATA)