File: Makefile

package info (click to toggle)
gtk-theme-switch 2.1.0-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, sid, stretch
  • size: 268 kB
  • ctags: 199
  • sloc: ansic: 3,315; makefile: 26
file content (53 lines) | stat: -rw-r--r-- 1,955 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#========================================================================
#Gtk Theme Switch, a fast and small Gtk theme switching utility that has a 
#GUI and console interface.
#
#Copyright (C) 2009  Maher Awamy <muhri@muhri.net>
#                    Aaron Lehmann <aaronl@vitelus.com>
#                    Joshua Kwan <joshk@triplehelix.org> 
#                    Pedro Villavicencio Garrido <pvillavi@gnome.cl>
#                    Denis Briand <denis@narcan.fr>
#
#This program is free software; you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation; either version 2 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License along
#with this program; if not, write to the Free Software Foundation, Inc.,
#51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
#=========================================================================

GCC = gcc
PREFIX=/usr/local
CFLAGS = -g -O2 -Wall
CFLAGS_GTK2 = $(shell pkg-config gtk+-2.0 --cflags)

LIBS_GTK2 = $(shell pkg-config gtk+-2.0 --libs)

VERSION = 2.1.0

all: gtk-theme-switch2

gtk-theme-switch2: main.c
	${GCC} -DSWITCH_GTK2 -o gtk-theme-switch2 main.c ${CFLAGS} ${CFLAGS_GTK2} ${LIBS_GTK2}

clean:
	-rm -f gtk-theme-switch2 *~
	
install: all
	mkdir -p ${PREFIX}/bin
	mkdir -p ${PREFIX}/man
	install -c gtk-theme-switch2 ${PREFIX}/bin
	install -c gtk-theme-switch2.1 ${PREFIX}/man

dist: clean
	rm -rf /tmp/gtk-theme-switch-$(VERSION)
	cp -r . /tmp/gtk-theme-switch-$(VERSION)
	tar czf ../gtk-theme-switch-$(VERSION).tar.gz -C /tmp/ gtk-theme-switch-$(VERSION)
	rm -rf /tmp/gtk-theme-switch-$(VERSION)