chiark / gitweb /
server/gstdecode.c: New program, like `disorder-decode'.
[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 disobedience128x128.png \
32disobedience256x256.png disobedience48x48.png disobedience64x64.png
33
34DISOBEDIENCE_IMAGES=up.png down.png cards24.png logo256.png duck.png \
35propagate.png
36
37if GTK
38noinst_HEADERS=images.h
39
40images.h: $(DISOBEDIENCE_IMAGES)
41 set -e; \
42 exec > @$.new; \
43 for png in $^; do \
44 name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
45 gdk-pixbuf-csource --raw --name=image_$$name $$png; \
46 done; \
47 echo "static const struct image images[] = {"; \
48 for png in `echo $^`; do \
49 name=`echo $$png | $(GNUSED) 's,.*/,,;s,\.png,,;'`; \
50 echo " { \"$$name.png\", image_$$name },"; \
51 done|sort; \
52 echo "};"
53 mv @$.new $@
54endif
55
56CLEANFILES=$(SEDFILES) images.h