1 ## Process this file with automake to produce Makefile.in
3 ## Copyright (C) 2000-2006 Stefan Petersen (spe at stacken.kth.se)
5 ## This file is part of gerbv.
8 ## This program is free software; you can redistribute it and/or modify
9 ## it under the terms of the GNU General Public License as published by
10 ## the Free Software Foundation; either version 2 of the License, or
11 ## (at your option) any later version.
13 ## This program is distributed in the hope that it will be useful,
14 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 ## GNU General Public License for more details.
18 ## You should have received a copy of the GNU General Public License
19 ## along with this program; if not, write to the Free Software
20 ## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
23 xdgdatadir=@XDGDATADIR@
24 themedir=$(xdgdatadir)/icons/$(theme)
29 $(app_icon:%=%-16.png) \
30 $(app_icon:%=%-22.png) \
31 $(app_icon:%=%-24.png) \
32 $(app_icon:%=%-32.png) \
33 $(app_icon:%=%-48.png) \
37 $(app_icon_files:%=apps,%)
39 desktopdir=$(xdgdatadir)/applications
40 dist_desktop_DATA = gerbv.desktop
43 $(SETENV) GTK_UPDATE_ICON_CACHE_BIN="@GTK_UPDATE_ICON_CACHE_BIN@" \
44 $(SHELL) $(top_srcdir)/icon-theme-installer \
49 -m "$(mkinstalldirs)" \
53 $(install_icon_exec) -i $(theme_icons)
56 if ENABLE_UPDATE_DESKTOP_DATABASE
57 $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
61 if ENABLE_UPDATE_DESKTOP_DATABASE
62 $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
64 $(install_icon_exec) -u $(theme_icons)
66 EXTRA_DIST = gerbv.png $(app_icon_files)
68 MAINTAINERCLEANFILES = *~ *.o Makefile Makefile.in