# Copyright 2008 Soren Sandmann, Inc. # # Permission to use, copy, modify, distribute, and sell this software and its # documentation for any purpose is hereby granted without fee, provided that # the above copyright notice appear in all copies and that both that # copyright notice and this permission notice appear in supporting # documentation, and that the name of Soren Sandmann not be used in # advertising or publicity pertaining to distribution of the software without # specific, written prior permission. Soren Sandmann makes no # representations about the suitability of this software for any purpose. It # is provided "as is" without express or implied warranty. # # SOREN SANDMANN DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, # INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO # EVENT SHALL SOREN SANDMANN BE LIABLE FOR ANY SPECIAL, INDIRECT OR # CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, # DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER # TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. bin_PROGRAMS = siv AM_CFLAGS = $(DEPENDENCIES_CFLAGS) -DDATADIR=\"$(pkgdatadir)\" siv_LDADD = $(DEPENDENCIES_LIBS) siv_SOURCES = \ siv.c \ siv.h \ sivviewport.c \ window.c dist_pkgdata_DATA = siv.glade desktopdir = $(datadir)/applications desktop_DATA = siv.desktop pixmaps16dir = $(datadir)/icons/hicolor/16x16/apps/ pixmaps22dir = $(datadir)/icons/hicolor/22x22/apps/ pixmaps24dir = $(datadir)/icons/hicolor/24x16/apps/ pixmaps32dir = $(datadir)/icons/hicolor/32x32/apps/ pixmaps48dir = $(datadir)/icons/hicolor/48x48/apps/ pixmaps64dir = $(datadir)/icons/hicolor/64x64/apps/ pixmaps96dir = $(datadir)/icons/hicolor/96x96/apps/ dist_pixmaps16_DATA = icons/16x16/siv.png dist_pixmaps22_DATA = icons/22x22/siv.png dist_pixmaps24_DATA = icons/24x24/siv.png dist_pixmaps32_DATA = icons/32x32/siv.png dist_pixmaps48_DATA = icons/48x48/siv.png dist_pixmaps64_DATA = icons/64x64/siv.png dist_pixmaps96_DATA = icons/96x96/siv.png # Stolen from rhythmbox 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