chiark / gitweb /
Merge branch 'master' of git.distorted.org.uk:~mdw/publish/public-git/disorder
[disorder] / disobedience / Makefile.am
... / ...
CommitLineData
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
19VPATH+=${top_srcdir}/common
20
21bin_PROGRAMS=disobedience
22SUBDIRS=manual
23
24AUTOMAKE_OPTIONS=subdir-objects
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 \
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
35nodist_disobedience_SOURCES=memgc.c
36disobedience_LDADD=../lib/libdisorder.a $(LIBPCRE) $(LIBGC) $(LIBGCRYPT) \
37 $(LIBASOUND) $(COREAUDIO) $(LIBICONV) -lm \
38 $(PULSEAUDIO_SIMPLE_LIBS) $(PULSEAUDIO_LIBS)
39disobedience_LDFLAGS=$(GTK_LIBS)
40
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
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
65check: check-help
66
67misc.o: ../images/images.h
68
69EXTRA_DIST=disobedience.desktop
70
71# check everything has working --help
72check-help: all
73 unset DISPLAY;./disobedience --version > /dev/null
74 unset DISPLAY;./disobedience --help > /dev/null
75
76CLEANFILES=*.gcda *.gcov *.gcno *.c.html index.html
77
78export GNUSED