Commit | Line | Data |
---|---|---|
460b9539 | 1 | # |
2 | # This file is part of DisOrder. | |
444be909 | 3 | # Copyright (C) 2005-2010 Richard Kettlewell |
460b9539 | 4 | # |
e7eb3a27 | 5 | # This program is free software: you can redistribute it and/or modify |
460b9539 | 6 | # it under the terms of the GNU General Public License as published by |
e7eb3a27 | 7 | # the Free Software Foundation, either version 3 of the License, or |
460b9539 | 8 | # (at your option) any later version. |
9 | # | |
e7eb3a27 RK |
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 | # | |
460b9539 | 15 | # You should have received a copy of the GNU General Public License |
e7eb3a27 | 16 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
460b9539 | 17 | # |
18 | ||
64ac73bb | 19 | pkghttp_DATA=cross.png down.png downdown.png edit.png nocross.png \ |
5d30e04b RK |
20 | nodown.png nodowndown.png noup.png noupup.png tick.png up.png upup.png \ |
21 | notes.png play.png pause.png random.png randomcross.png notescross.png \ | |
22 | propagate.png speaker.png speakercross.png directory.png logo.png \ | |
b2ea2aa6 | 23 | logosmall.png logo256.png |
460b9539 | 24 | |
5c739b23 RK |
25 | EXTRA_DIST=$(pkghttp_DATA) duck.png disobedience16x16.xpm \ |
26 | disobedience32x32.xpm cross.svg go.svg notes.svg noteson.svg pause.svg \ | |
27 | query.svg queryon.svg speaker.svg speakeron.svg cross32.png \ | |
28 | pause32.png play32.png playdisabled32.png playenabled32.png \ | |
29 | randomdisabled32.png randomenabled32.png rtpdisabled32.png \ | |
c329bf88 | 30 | rtpenabled32.png duck55.png cards24.png cards48.png \ |
51827ce3 RK |
31 | cards-simple-fanned.svg cards-thin.svg disobedience128x128.png \ |
32 | disobedience256x256.png disobedience48x48.png disobedience64x64.png | |
460b9539 | 33 | |
444be909 RK |
34 | DISOBEDIENCE_IMAGES=up.png down.png cards24.png logo256.png duck.png \ |
35 | propagate.png | |
36 | ||
37 | if GTK | |
38 | noinst_HEADERS=images.h | |
39 | ||
40 | images.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 $@ | |
54 | endif | |
55 | ||
56 | CLEANFILES=$(SEDFILES) images.h |