Skip to content

Commit

Permalink
Install icons.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcus Lundblad committed Jun 13, 2012
1 parent 8830625 commit 59c5965
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Process this file with automake to produce Makefile.in
## Created by Anjuta

SUBDIRS = data src po
SUBDIRS = data icons src po

tablerdocdir = ${prefix}/doc/tabler
tablerdoc_DATA = \
Expand Down
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ AC_OUTPUT([
Makefile
data/Makefile
data/tabler.desktop.in
icons/Makefile
src/Makefile
po/Makefile.in
])
Expand Down
22 changes: 22 additions & 0 deletions icons/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor

install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi


svgicondir = $(datadir)/icons/hicolor/scalable/apps
svgicon_DATA = tabler.svg

mimesvgicondir = $(datadir)/icons/hicolor/scalable/mimetypes
mimesvgicon_DATA = application-x-tabler.svg


EXTRA_DIST = $(svgicon_DATA) $(mimesvgicon_DATA)

0 comments on commit 59c5965

Please sign in to comment.