chiark / gitweb /
configure.ac, debian/: Set up correct dependencies for GStreamer.
[disorder] / disobedience / Makefile.am
CommitLineData
460b9539 1#
2# This file is part of DisOrder.
3f5b2351 3# Copyright (C) 2006-2013 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
3e1d9716
MW
19VPATH+=${top_srcdir}/common
20
460b9539 21bin_PROGRAMS=disobedience
7e960883 22SUBDIRS=manual
460b9539 23
3f5b2351 24AUTOMAKE_OPTIONS=subdir-objects
460b9539 25AM_CPPFLAGS=-I${top_srcdir}/lib -I../lib
26AM_CFLAGS=$(GLIB_CFLAGS) $(GTK_CFLAGS)
27
28disobedience_SOURCES=disobedience.h disobedience.c client.c queue.c \
c133bd3c 29 recent.c added.c queue-generic.c queue-generic.h queue-menu.c \
cfa78eaa
RK
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 \
3e1d9716 32 help.c settings.c users.c lookup.c choose.h \
d80269af 33 popup.h playlists.c multidrag.c multidrag.h autoscroll.c \
e5cce183 34 autoscroll.h globals.c
3e1d9716 35nodist_disobedience_SOURCES=memgc.c
b25aac59 36disobedience_LDADD=../lib/libdisorder.a $(LIBPCRE) $(LIBGC) $(LIBGCRYPT) \
de0ef46e
RK
37 $(LIBASOUND) $(COREAUDIO) $(LIBICONV) -lm \
38 $(PULSEAUDIO_SIMPLE_LIBS) $(PULSEAUDIO_LIBS)
460b9539 39disobedience_LDFLAGS=$(GTK_LIBS)
40
51827ce3
RK
41install-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
3e1d9716
MW
58uninstall-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
460b9539 65check: check-help
66
444be909 67misc.o: ../images/images.h
54abef2b 68
51827ce3
RK
69EXTRA_DIST=disobedience.desktop
70
460b9539 71# check everything has working --help
72check-help: all
97d3386f
RK
73 unset DISPLAY;./disobedience --version > /dev/null
74 unset DISPLAY;./disobedience --help > /dev/null
edbd470f 75
444be909 76CLEANFILES=*.gcda *.gcov *.gcno *.c.html index.html
4ba9806f 77
edbd470f 78export GNUSED