mirror of
https://github.com/Llewellynvdm/Tomb.git
synced 2024-11-23 04:52:08 +00:00
9497bbce42
this should be compatible with packaging
43 lines
1.4 KiB
Makefile
43 lines
1.4 KiB
Makefile
Applicationsdir = $(datadir)/applications
|
|
Applications_DATA = tomb.desktop
|
|
|
|
AppRegdir = $(datadir)/application-registry
|
|
AppReg_DATA = tomb.applications
|
|
|
|
MimeInfodir = $(datadir)/mime-info
|
|
MimeInfo_DATA = tomb.keys tomb.mime
|
|
|
|
Menudir = $(datadir)/menu
|
|
Menu_DATA = tomb
|
|
|
|
Iconsdir = $(datadir)/icons
|
|
Icons_DATA = monmort.png
|
|
|
|
AppInstIcondir = $(datadir)/app-install/icons
|
|
AppInstIcon_DATA = monmort.png
|
|
|
|
AppInstDeskdir = $(datadir)/app-install/desktop
|
|
AppInstDesk_DATA = tomb.desktop
|
|
|
|
gtkrc:
|
|
sed -e 's@\%prefix\%@'"$(datadir)"'@' gtkrc.in > gtkrc
|
|
|
|
GtkRcdir = $(datadir)/themes/tomb/gtk-2.0-key
|
|
GtkRc_DATA = gtkrc
|
|
|
|
MimePkgdir = $(prefix)/lib/mime/packages/tomb
|
|
MimePkg = tomb.mimepkg
|
|
|
|
install-data-hook:
|
|
@echo "installing mime type"
|
|
@install -t $(DESTDIR)$(datadir)/mime/packages dyne-tomb.xml
|
|
@if ! [ -n `which xdg-mime` ]; then xdg-mime install dyne-tomb.xml; fi
|
|
@echo "installing icons";
|
|
@install -t $(DESTDIR)$(datadir)/pixmaps monmort.xpm
|
|
@if ! [ -n `which xdg-icon-resource` ]; then \
|
|
xdg-icon-resource install --context mimetypes --size 32 ../src/monmort.xpm monmort; \
|
|
xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-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
|