]> iEval git - gtk-theme-switch.git/blob - Makefile
Remove extraneous space at end of copyright
[gtk-theme-switch.git] / Makefile
1 #========================================================================
2 #Gtk Theme Switch, a fast and small Gtk theme switching utility that has a
3 #GUI and console interface.
4 #
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>
10 #
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.
15 #
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.
20 #
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 #=========================================================================
25
26 GCC = gcc
27 PREFIX=/usr/local
28 CFLAGS = -g -O2 -Wall
29 CFLAGS_GTK2 = $(shell pkg-config gtk+-2.0 --cflags)
30
31 LIBS_GTK2 = $(shell pkg-config gtk+-2.0 --libs)
32
33 VERSION = 2.1.0
34
35 all: gtk-theme-switch2
36
37 gtk-theme-switch2: main.c
38 ${GCC} -DSWITCH_GTK2 -o gtk-theme-switch2 main.c ${CFLAGS} ${CFLAGS_GTK2} ${LIBS_GTK2}
39
40 clean:
41 -rm -f gtk-theme-switch2 *~
42
43 install: all
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
48
49 dist: clean
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)
This page took 0.054007 seconds and 4 git commands to generate.