Tomb/share/Makefile.am

58 lines
2.1 KiB
Makefile
Raw Normal View History

2011-05-26 15:01:03 +00:00
EXTRA_DIST = tomb.desktop tomb.applications tomb.keys tomb.mime tomb \
monmort.png gtkrc.in tomb.mimepkg dyne-tomb.xml
2011-05-26 15:38:17 +00:00
Applicationsdir = $(datadir)/applications
Applications_DATA = tomb.desktop
2011-05-26 15:38:17 +00:00
AppRegdir = $(datadir)/application-registry
AppReg_DATA = tomb.applications
2011-05-26 15:38:17 +00:00
MimeInfodir = $(datadir)/mime-info
MimeInfo_DATA = tomb.keys tomb.mime
2011-01-19 18:47:52 +00:00
2011-05-26 15:38:17 +00:00
Menudir = $(datadir)/menu
2011-01-29 13:45:03 +00:00
Menu_DATA = tomb
2011-05-26 15:38:17 +00:00
Iconsdir = $(datadir)/pixmaps
2011-01-19 18:47:52 +00:00
Icons_DATA = monmort.png
2011-05-26 15:27:34 +00:00
2011-05-26 15:38:17 +00:00
AppInstIcondir = $(datadir)/app-install/icons
2011-02-20 18:37:55 +00:00
AppInstIcon_DATA = monmort.png
2011-05-26 15:38:17 +00:00
AppInstDeskdir = $(datadir)/app-install/desktop
2011-02-20 18:37:55 +00:00
AppInstDesk_DATA = tomb.desktop
2011-01-19 18:47:52 +00:00
2011-02-25 00:15:39 +00:00
gtkrc:
2011-05-26 15:01:03 +00:00
sed -e 's@\%prefix\%@'"$(datadir)"'@' $(top_srcdir)/share/gtkrc.in > \
$(top_builddir)/share/gtkrc
2011-02-25 00:15:39 +00:00
2011-05-26 15:38:17 +00:00
GtkRcdir = $(datadir)/themes/tomb/gtk-2.0-key
2011-02-25 00:15:39 +00:00
GtkRc_DATA = gtkrc
MimePkgdir = $(DESTDIR)/$(prefix)/lib/mime/packages/tomb
2011-02-25 00:15:39 +00:00
MimePkg = tomb.mimepkg
install-data-hook:
@echo "installing mime type"
2011-05-26 15:01:03 +00:00
@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
2011-05-26 16:08:25 +00:00
@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
2011-02-20 18:37:55 +00:00
@echo "installing icons";
2011-02-24 23:10:09 +00:00
@if ! [ -n `which xdg-icon-resource` ]; then \
2011-05-26 15:01:03 +00:00
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
2011-05-26 16:08:25 +00:00
@mkdir -p $(DESTDIR)/$(datadir)/icons/hicolor/32x32/mimetypes; \
ln -s $(AppInstIcondir)/monmort.png \
2011-05-26 16:14:42 +00:00
$(DESTDIR)/$(datadir)/icons/hicolor/32x32/mimetypes/application-x-tomb-volume.png
ln -s $(AppInstIcondir)/monmort.png \
$(DESTDIR)/$(datadir)/icons/hicolor/32x32/mimetypes/application-x-tomb-key.png
2011-05-26 16:08:25 +00:00
@if ! [ -n `which update-icon-caches` ]; then \
update-icon-caches $(DESTDIR)/$(datadir)/icons/hicolor; fi
2011-05-26 16:26:46 +00:00
install $(top_builddir)/share/gtkrc $(DESTDIR)/$(GtkRcdir)/
2011-05-26 15:01:03 +00:00
distclean:
unlink gtkrc
unlink Makefile