summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b2253ea616e7bc5fa7e9315828ec8721a9525347 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#  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 \
        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