mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-09 22:50:56 +00:00
55 lines
1.8 KiB
Makefile
55 lines
1.8 KiB
Makefile
|
|
EXTRA_DIST = tomb.desktop tomb.applications tomb.keys tomb.mime tomb \
|
|
monmort.png gtkrc.in tomb.mimepkg dyne-tomb.xml
|
|
|
|
Applicationsdir = $(DESTDIR)/$(datadir)/applications
|
|
Applications_DATA = tomb.desktop
|
|
|
|
AppRegdir = $(DESTDIR)/$(datadir)/application-registry
|
|
AppReg_DATA = tomb.applications
|
|
|
|
MimeInfodir = $(DESTDIR)/$(datadir)/mime-info
|
|
MimeInfo_DATA = tomb.keys tomb.mime
|
|
|
|
Menudir = $(DESTDIR)/$(datadir)/menu
|
|
Menu_DATA = tomb
|
|
|
|
Iconsdir = $(DESTDIR)/$(datadir)/pixmaps
|
|
Icons_DATA = monmort.png
|
|
|
|
AppInstIcondir = $(DESTDIR)/$(datadir)/app-install/icons
|
|
AppInstIcon_DATA = monmort.png
|
|
|
|
AppInstDeskdir = $(DESTDIR)/$(datadir)/app-install/desktop
|
|
AppInstDesk_DATA = tomb.desktop
|
|
|
|
gtkrc:
|
|
sed -e 's@\%prefix\%@'"$(datadir)"'@' $(top_srcdir)/share/gtkrc.in > \
|
|
$(top_builddir)/share/gtkrc
|
|
|
|
GtkRcdir = $(DESTDIR)/$(datadir)/themes/tomb/gtk-2.0-key
|
|
GtkRc_DATA = gtkrc
|
|
|
|
MimePkgdir = $(DESTDIR)/$(prefix)/lib/mime/packages/tomb
|
|
MimePkg = tomb.mimepkg
|
|
|
|
install-data-hook:
|
|
@echo "installing mime type"
|
|
@install -D $(top_srcdir)/share/dyne-tomb.xml $(DESTDIR)/$(datadir)/mime/packages
|
|
@if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi
|
|
@echo "installing icons";
|
|
# @install -D $(top_srcdir)/share/monmort.png $(DESTDIR)/$(datadir)/pixmaps
|
|
@if ! [ -n `which xdg-icon-resource` ]; then \
|
|
xdg-icon-resource install --context mimetypes --size 32 \
|
|
$(top_srcdir)/src/monmort.xpm monmort; \
|
|
xdg-icon-resource install --size 32 $(top_srcdir)/src/monmort.xpm monmort; fi
|
|
@if ! [ -n `which update-desktop-database` ]; then echo update-desktop-database; update-desktop-database; fi
|
|
@if ! [ -n `which update-menus` ]; then echo update-menus; update-menus; fi
|
|
@if ! [ -n `which update-mime` ]; then echo update-mime; update-mime; fi
|
|
|
|
uninstall-hook:
|
|
# unlink $(DESTDIR)/$(datadir)/pixmaps/monmort.png
|
|
|
|
distclean:
|
|
unlink gtkrc
|
|
unlink Makefile
|