fixes for distcheck

This commit is contained in:
Jaromil 2011-05-26 17:01:03 +02:00
parent c5c2461eea
commit c47e48a96c
3 changed files with 21 additions and 7 deletions

View File

@ -1,5 +1,6 @@
man_MANS = tomb.1 tomb-open.1 tomb-status.1
EXTRA_DIST = Luks_on_disk_format.pdf New_methods_in_HD_encryption.pdf TKS1-draft.pdf
EXTRA_DIST = tomb.1 tomb-open.1 tomb-status.1 Luks_on_disk_format.pdf \
New_methods_in_HD_encryption.pdf TKS1-draft.pdf

View File

@ -1,3 +1,7 @@
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
@ -20,7 +24,8 @@ AppInstDeskdir = $(DESTDIR)/$(datadir)/app-install/desktop
AppInstDesk_DATA = tomb.desktop
gtkrc:
sed -e 's@\%prefix\%@'"$(datadir)"'@' gtkrc.in > 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
@ -30,13 +35,21 @@ MimePkg = tomb.mimepkg
install-data-hook:
@echo "installing mime type"
@install -D dyne-tomb.xml $(DESTDIR)/$(datadir)/mime/packages
@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 monmort.png $(DESTDIR)/$(datadir)/pixmaps
@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 ../src/monmort.xpm monmort; \
xdg-icon-resource install --size 32 ../src/monmort.xpm dyne-monmort; fi
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

View File

@ -7,6 +7,6 @@ tomb_status_SOURCES = tomb-status.c
tomb_status_LDADD = @GTK2_LIBS@ @NOTIFY_LIBS@
tomb_status_CFLAGS = @GTK2_CFLAGS@ @NOTIFY_CFLAGS@
EXTRA_DIST = monmort.xpm
EXTRA_DIST = monmort.xpm tomb tomb-open
pixmapdir = $(datadir)/pixmaps
pixmap_DATA = monmort.xpm