chiark / gitweb /
configure.ac, debian/: Set up correct dependencies for GStreamer.
[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 VPATH+=${top_srcdir}/common
20
21 bin_PROGRAMS=disobedience
22 SUBDIRS=manual
23
24 AUTOMAKE_OPTIONS=subdir-objects
25 AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
26 AM_CFLAGS=$(GLIB_CFLAGS) $(GTK_CFLAGS)
27
28 disobedience_SOURCES=disobedience.h disobedience.c client.c queue.c     \
29         recent.c added.c queue-generic.c queue-generic.h queue-menu.c   \
30         choose.c choose-menu.c choose-search.c popup.c misc.c           \
31         control.c properties.c menu.c log.c progress.c login.c rtp.c    \
32         help.c settings.c users.c lookup.c choose.h                     \
33         popup.h playlists.c multidrag.c multidrag.h autoscroll.c        \
34         autoscroll.h globals.c
35 nodist_disobedience_SOURCES=memgc.c
36 disobedience_LDADD=../lib/libdisorder.a $(LIBPCRE) $(LIBGC) $(LIBGCRYPT) \
37         $(LIBASOUND) $(COREAUDIO) $(LIBICONV) -lm \
38         $(PULSEAUDIO_SIMPLE_LIBS) $(PULSEAUDIO_LIBS)
39 disobedience_LDFLAGS=$(GTK_LIBS)
40
41 install-data-local:
42         $(MKDIR_P) ${DESTDIR}${datarootdir}/applications
43         $(INSTALL) -m 644 ${srcdir}/disobedience.desktop \
44                 ${DESTDIR}${datarootdir}/applications/disobedience.desktop
45         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/48x48/apps
46         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience48x48.png \
47                 ${DESTDIR}${datarootdir}/icons/hicolor/48x48/apps/disobedience.png
48         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/64x64/apps
49         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience64x64.png \
50                 ${DESTDIR}${datarootdir}/icons/hicolor/64x64/apps/disobedience.png
51         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/128x128/apps
52         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience128x128.png \
53                 ${DESTDIR}${datarootdir}/icons/hicolor/128x128/apps/disobedience.png
54         $(MKDIR_P) ${DESTDIR}${datarootdir}/icons/hicolor/256x256/apps
55         $(INSTALL) -m 644 ${top_srcdir}/images/disobedience256x256.png \
56                 ${DESTDIR}${datarootdir}/icons/hicolor/256x256/apps/disobedience.png
57
58 uninstall-local:
59         rm -f ${DESTDIR}${datarootdir}/applications/disobedience.desktop
60         rm -f ${DESTDIR}${datarootdir}/icons/hicolor/48x48/apps/disobedience.png
61         rm -f ${DESTDIR}${datarootdir}/icons/hicolor/64x64/apps/disobedience.png
62         rm -f ${DESTDIR}${datarootdir}/icons/hicolor/128x128/apps/disobedience.png
63         rm -f ${DESTDIR}${datarootdir}/icons/hicolor/256x256/apps/disobedience.png
64
65 check: check-help
66
67 misc.o: ../images/images.h
68
69 EXTRA_DIST=disobedience.desktop
70
71 # check everything has working --help
72 check-help: all
73         unset DISPLAY;./disobedience --version > /dev/null
74         unset DISPLAY;./disobedience --help > /dev/null
75
76 CLEANFILES=*.gcda *.gcov *.gcno *.c.html index.html
77
78 export GNUSED