share: fix appdata.xml rules

This commit is contained in:
Rémi Denis-Courmont 2022-03-07 21:17:54 +02:00
parent 85f85230df
commit d64976fd7e
1 changed files with 5 additions and 3 deletions

View File

@ -7,8 +7,7 @@ if !HAVE_WIN32
if !HAVE_DARWIN
desktop_DATA = vlc.desktop vlc-openbd.desktop vlc-opendvd.desktop vlc-openvcd.desktop vlc-opencda.desktop
appdatadir = $(datarootdir)/metainfo
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = vlc.appdata.xml.in
appdata_DATA = vlc.appdata.xml
endif
endif
@ -25,7 +24,10 @@ CLEANFILES += $(desktop_DATA) $(appdata_DATA)
$(AM_V_at)mv -f tmp-$@ $@
vlc.appdata.xml: vlc.appdata.xml.in
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@ || cp $< $@
$(AM_V_GEN)$(MSGFMT) --xml --template "$<" -d "$(top_srcdir)/po" \
-o "$@.tmp" || \
cp $< $@.tmp
$(AM_V_at)mv -f "$@.tmp" "$@"
iconsdatadir = $(datadir)/icons/hicolor
icons16dir = $(iconsdatadir)/16x16/apps