1 #========================================================================
2 #Gtk Theme Switch, a fast and small Gtk theme switching utility that has a
3 #GUI and console interface.
5 #Copyright (C) 2009 Maher Awamy <muhri@muhri.net>
6 # Aaron Lehmann <aaronl@vitelus.com>
7 # Joshua Kwan <joshk@triplehelix.org>
8 # Pedro Villavicencio Garrido <pvillavi@gnome.cl>
9 # Denis Briand <denis@narcan.fr>
11 #This program is free software; you can redistribute it and/or modify
12 #it under the terms of the GNU General Public License as published by
13 #the Free Software Foundation; either version 2 of the License, or
14 #(at your option) any later version.
16 #This program is distributed in the hope that it will be useful,
17 #but WITHOUT ANY WARRANTY; without even the implied warranty of
18 #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 #GNU General Public License for more details.
21 #You should have received a copy of the GNU General Public License along
22 #with this program; if not, write to the Free Software Foundation, Inc.,
23 #51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 #=========================================================================
29 CFLAGS_GTK2
= $(shell pkg-config gtk
+-2.0 --cflags)
31 LIBS_GTK2
= $(shell pkg-config gtk
+-2.0 --libs
)
35 all: gtk-theme-switch2
37 gtk-theme-switch2
: main.c
38 ${GCC} -DSWITCH_GTK2
-o gtk-theme-switch2 main.c
${CFLAGS} ${CFLAGS_GTK2} ${LIBS_GTK2}
41 -rm -f gtk-theme-switch2
*~
44 mkdir
-p
${PREFIX}/bin
45 mkdir
-p
${PREFIX}/man
46 install -c gtk-theme-switch2
${PREFIX}/bin
47 install -c gtk-theme-switch2.1
${PREFIX}/man
50 rm -rf
/tmp
/gtk-theme-switch-
$(VERSION
)
51 cp
-r .
/tmp
/gtk-theme-switch-
$(VERSION
)
52 tar czf ..
/gtk-theme-switch-
$(VERSION
).
tar.gz
-C
/tmp
/ gtk-theme-switch-
$(VERSION
)
53 rm -rf
/tmp
/gtk-theme-switch-
$(VERSION
)