gui: Use automake instead of installing files manually.

This commit is contained in:
tgoff0 2015-05-26 17:34:04 +00:00
parent 0ce17e8c52
commit 033b3227c0

View file

@ -84,28 +84,18 @@ dist_coreicontiny_DATA = $(TINY_ICONS)
coreiconsvgdir = $(CORE_DATA_DIR)/icons/svg coreiconsvgdir = $(CORE_DATA_DIR)/icons/svg
dist_coreiconsvg_DATA = $(SVG_ICONS) dist_coreiconsvg_DATA = $(SVG_ICONS)
iconpixmapdir = $(datarootdir)/pixmaps iconpixmapdir = $(datarootdir)/pixmaps
icondesktopdir = $(datarootdir)/applications dist_iconpixmap_DATA = core-gui.xpm
install-exec-hook: install-gui-icon icondesktopdir = $(datarootdir)/applications
dist_icondesktop_DATA = core-gui.desktop
uninstall-hook: uninstall-gui-icon uninstall-hook:
rmdir -p $(icondesktopdir) || true
.PHONY: install-gui-icon rmdir -p $(iconpixmapdir) || true
install-gui-icon: rmdir -p $(coreiconsvgdir) || true
test -d $(DESTDIR)/$(iconpixmapdir) || \ rmdir -p $(coreicontinydir) || true
mkdir -p $(DESTDIR)/$(iconpixmapdir) rmdir -p $(coreiconnormaldir) || true
cp -f core-gui.xpm $(DESTDIR)/$(iconpixmapdir)
test -d $(DESTDIR)/$(icondesktopdir) || \
mkdir -p $(DESTDIR)/$(icondesktopdir)
cp -f core-gui.desktop $(DESTDIR)/$(icondesktopdir)
.PHONY: uninstall-gui-icon
uninstall-gui-icon:
rm -f $(iconpixmapdir)/core-gui.xpm
rm -f $(icondesktopdir)/core-gui.desktop
EXTRA_DIST = core-gui.xpm core-gui.desktop
# extra cruft to remove # extra cruft to remove
DISTCLEANFILES = Makefile.in DISTCLEANFILES = Makefile.in