Create metainfo directory with 'install'

The -D argument to install, together with -t DEST, means "ensure DEST
exists".
This commit is contained in:
Will Thompson 2022-06-29 12:40:44 +01:00
parent 73d5e9b8c6
commit c03b688e98

View file

@ -960,8 +960,7 @@ install-xdg: src/tuxpaint.desktop src/org.tuxpaint.Tuxpaint.metainfo.xml
@if [ "x$(shell which update-desktop-database)" != "x" ]; then \
update-desktop-database ; \
fi
@mkdir -p $(METAINFO_PREFIX)
install --mode=0644 -t $(METAINFO_PREFIX) src/org.tuxpaint.Tuxpaint.metainfo.xml
install --mode=0644 -Dt $(METAINFO_PREFIX) src/org.tuxpaint.Tuxpaint.metainfo.xml
# Install the PNG icon (for KDE desktop, etc.)
# and the 24-color 32x32 XPM (for other Window managers):