chiark / gitweb /
Move images.h to images/ directory, and limit to just the images that
[disorder] / images / Makefile.am
... / ...
CommitLineData
1#
2# This file is part of DisOrder.
3# Copyright (C) 2005-2010 Richard Kettlewell
4#
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation, either version 3 of the License, or
8# (at your option) any later version.
9#
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14#
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <http://www.gnu.org/licenses/>.
17#
18
19pkghttp_DATA=cross.png down.png downdown.png edit.png nocross.png \
20nodown.png nodowndown.png noup.png noupup.png tick.png up.png upup.png \
21notes.png play.png pause.png random.png randomcross.png notescross.png \
22propagate.png speaker.png speakercross.png directory.png logo.png \
23logosmall.png logo256.png
24
25EXTRA_DIST=$(pkghttp_DATA) duck.png disobedience16x16.xpm \
26disobedience32x32.xpm cross.svg go.svg notes.svg noteson.svg pause.svg \
27query.svg queryon.svg speaker.svg speakeron.svg cross32.png \
28pause32.png play32.png playdisabled32.png playenabled32.png \
29randomdisabled32.png randomenabled32.png rtpdisabled32.png \
30rtpenabled32.png duck55.png cards24.png cards48.png \
31cards-simple-fanned.svg cards-thin.svg
32
33DISOBEDIENCE_IMAGES=up.png down.png cards24.png logo256.png duck.png \
34propagate.png
35
36if GTK
37noinst_HEADERS=images.h
38
39images.h: $(DISOBEDIENCE_IMAGES)
40 set -e; \
41 exec > @$.new; \
42 for png in $^; do \
43 name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
44 gdk-pixbuf-csource --raw --name=image_$$name $$png; \
45 done; \
46 echo "static const struct image images[] = {"; \
47 for png in `echo $^`; do \
48 name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
49 echo " { \"$$name.png\", image_$$name },"; \
50 done|sort; \
51 echo "};"
52 mv @$.new $@
53endif
54
55CLEANFILES=$(SEDFILES) images.h