fixed uninstall target, now using debug flag properly in qt
[jackctlmmc.git] / GNUmakefile.in
blob71d3f7d6035050c854bdfeaab4a2bd275831e99d
1 # Copyright (c) 2006-2011 Nedko Arnaudov <nedko@arnaudov.name>,
2 # Alex Montgomery <apmontgo@users.sourceforge.net>
4 # This program is free software; you can redistribute it and/or modify it under
5 # the terms of the GNU General Public License as published by the Free Software
6 # Foundation; version 2 of the License.
7 #
8 # This program is distributed in the hope that it will be useful, but WITHOUT ANY
9 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
12 # You should have received a copy of the GNU General Public License along
13 # with this program; if not, write to the Free Software Foundation, Inc.,
14 # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
16 @SET_MAKE@
18 PREFIX = @ac_prefix@
19 QMAKE = @ac_qmake@
20 INSTALL = @INSTALL@
22 CFLAGS += @ac_cflags@
23 LIBS += @ac_libs@
25 OBJECTS=main.o common.o
27 default: @ac_default_deps@
28 install: @ac_default_install@
30 jackctlmmc: $(OBJECTS)
31 $(CC) $(CFLAGS) $(LIBS) -o $@ $(OBJECTS)
33 qjackmmc:
34 cd qt && $(QMAKE) -o Makefile qjackmmc.pro && $(MAKE)
37 cli_install: jackctlmmc
38 $(INSTALL) -v ./jackctlmmc $(DESTDIR)$(PREFIX)/bin
40 gui_install: qjackmmc
41 $(INSTALL) -v ./qjackmmc $(DESTDIR)$(PREFIX)/bin
42 # cp desktop_file whereItGoes
43 # cp icon whereItGoes
45 cli_uninstall:
46 rm -vf $(DESTDIR)$(PREFIX)/bin/jackctlmmc
48 gui_uninstall: qjackmmc
49 rm -vf $(DESTDIR)$(PREFIX)/bin/qjackmmc
50 # cp desktop_file whereItGoes
51 # cp icon whereItGoes
53 clean:
54 rm -f jackctlmmc
55 rm -f qjackmmc
56 rm -rf *.o
57 if test -f qt/Makefile ; then cd qt && $(MAKE) clean && rm Makefile src/Makefile ; fi
59 rebuild: clean default