Makefile.am 1.6 KB
Newer Older
1
## $Id$
daniel_e's avatar
daniel_e committed
2
##
3
## Copyright (c) 2002  Daniel Elstner  <daniel.elstner@gmx.net>
daniel_e's avatar
daniel_e committed
4
##
5
6
7
8
9
10
11
12
13
14
15
16
17
18
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License VERSION 2 as
## published by the Free Software Foundation.  You are not allowed to
## use any other version of the license; unless you got the explicit
## permission from the author to do so.
##
## This program is distributed in the hope that it will be useful,
## but WITHOUT ANY WARRANTY; without even the implied warranty of
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
## GNU General Public License for more details.
##
## You should have received a copy of the GNU General Public License
## along with this program; if not, write to the Free Software
## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
daniel_e's avatar
daniel_e committed
19
20
21
22
23


pixmapdir = $(datadir)/pixmaps
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)
26
27
28
29

BUILT_SOURCES = stockimages.h
CLEANFILES    = stockimages.h

daniel_e's avatar
daniel_e committed
30
31
32
# use --extern here and include stockimages.h within an anonymous namespace
gdk_pixbuf_csource_command = $(GDK_PIXBUF_CSOURCE) --extern --raw

33
stockimages.h: $(stockimages)
34
	@build_list=''; \
35
	list='$(stockimages)'; for file in $$list ; do \
daniel_e's avatar
daniel_e committed
36
	  name=`echo "$$file" | sed 's|\..*$$||'`; \
37
38
	  dir=''; test -f "$$file" || dir='$(srcdir)/'; \
	  build_list="$$build_list $$name $$dir$$file"; \
39
	done; \
40
	echo " $(gdk_pixbuf_csource_command) --build-list $$build_list > $@"; \
daniel_e's avatar
daniel_e committed
41
	$(gdk_pixbuf_csource_command) --build-list $$build_list > $@
42