chiark / gitweb /
2328bca9552b5e8f3ecb4b71eed67fde3d5e9d14
[disorder] / disobedience / Makefile.am
1 #
2 # This file is part of DisOrder.
3 # Copyright (C) 2006-2013 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
19 bin_PROGRAMS=disobedience
20 SUBDIRS=manual
21
22 AUTOMAKE_OPTIONS=subdir-objects
23 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
24 AM_CFLAGS=$(GLIB_CFLAGS) $(GTK_CFLAGS)
25
26 disobedience_SOURCES=disobedience.h disobedience.c client.c queue.c     \
27         recent.c added.c queue-generic.c queue-generic.h queue-menu.c   \
28         choose.c choose-menu.c choose-search.c popup.c misc.c           \
29         control.c properties.c menu.c log.c progress.c login.c rtp.c    \
30         help.c ../lib/memgc.c settings.c users.c lookup.c choose.h      \
31         popup.h playlists.c multidrag.c multidrag.h autoscroll.c        \
32         autoscroll.h globals.c
33 disobedience_LDADD=../lib/libdisorder.a $(LIBPCRE) $(LIBGC) $(LIBGCRYPT) \
34         $(LIBASOUND) $(COREAUDIO) $(LIBICONV) -lm \
35         $(PULSEAUDIO_SIMPLE_LIBS) $(PULSEAUDIO_LIBS)
36 disobedience_LDFLAGS=$(GTK_LIBS)
37
38 install-data-local:
39         $(MKDIR_P) ${DESTDIR}${datarootdir}/applications
40         $(INSTALL) -m 644 ${srcdir}/disobedience.desktop \
41                 ${DESTDIR}${datarootdir}/applications/disobedience.desktop
42         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/48x48/apps
43         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience48x48.png \
44                 ${DESTDIR}${datarootdir}/icons/hicolor/48x48/apps/disobedience.png
45         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/64x64/apps
46         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience64x64.png \
47                 ${DESTDIR}${datarootdir}/icons/hicolor/64x64/apps/disobedience.png
48         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/128x128/apps
49         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience128x128.png \
50                 ${DESTDIR}${datarootdir}/icons/hicolor/128x128/apps/disobedience.png
51         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/256x256/apps
52         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience256x256.png \
53                 ${DESTDIR}${datarootdir}/icons/hicolor/256x256/apps/disobedience.png
54
55 check: check-help
56
57 misc.o: ../images/images.h
58
59 EXTRA_DIST=disobedience.desktop
60
61 # check everything has working --help
62 check-help: all
63         unset DISPLAY;./disobedience --version > /dev/null
64         unset DISPLAY;./disobedience --help > /dev/null
65
66 CLEANFILES=*.gcda *.gcov *.gcno *.c.html index.html
67
68 export GNUSED