1
## $Id: Makefile.am,v 1.12 2004/06/19 09:03:14 daniel Exp $
3
## Copyright (c) 2002 Daniel Elstner <daniel.elstner@gmx.net>
5
## This program is free software; you can redistribute it and/or modify
6
## it under the terms of the GNU General Public License VERSION 2 as
7
## published by the Free Software Foundation. You are not allowed to
8
## use any other version of the license; unless you got the explicit
9
## permission from the author to do so.
11
## This program is distributed in the hope that it will be useful,
12
## but WITHOUT ANY WARRANTY; without even the implied warranty of
13
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
## GNU General Public License for more details.
16
## You should have received a copy of the GNU General Public License
17
## along with this program; if not, write to the Free Software
18
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21
pixmapdir = $(datadir)/pixmaps
22
dist_pixmap_DATA = regexxer.png
24
stockimages = stock_menu_about.png stock_save_all_16.png stock_save_all_24.png
25
dist_noinst_DATA = $(stockimages)
27
BUILT_SOURCES = stockimages.h
28
CLEANFILES = stockimages.h
30
# use --extern here and include stockimages.h within an anonymous namespace
31
gdk_pixbuf_csource_command = $(GDK_PIXBUF_CSOURCE) --extern --raw
33
stockimages.h: $(stockimages)
34
@build_list='--build-list'; \
35
list='$(stockimages)'; for file in $$list; do \
36
name=`echo "$$file" | sed 's|^.*/||;s|\..*$$||;s|-|_|g'`; \
37
dir=; test -f "$$file" || dir='$(srcdir)/'; \
38
build_list="$$build_list $$name $$dir$$file"; \
40
echo " $(gdk_pixbuf_csource_command) $$build_list >$@"; \
41
$(gdk_pixbuf_csource_command) $$build_list >$@