Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via infra@gentoo.org or IRC
View | Details | Raw Unified | Return to bug 310693
Collapse All | Expand All

(-)Makefile (-11 / +13 lines)
Lines 1-24 Link Here
1
GCC = cc
1
CC ?= gcc
2
PREFIX=/usr/local
2
PREFIX ?= /usr
3
CFLAGS = -O2 -Wall $(shell pkg-config --cflags gtk+-2.0)
3
docdir ?= /usr/share/doc/gtk-theme-switch
4
mandir ?= /usr/share/man
5
CFLAGS += -Wall -DGTK_DISABLE_BROKEN $(shell pkg-config --cflags gtk+-2.0)
4
LIBS = $(shell pkg-config --libs gtk+-2.0)
6
LIBS = $(shell pkg-config --libs gtk+-2.0)
5
CFLAGS += -DGTK_DISABLE_BROKEN -DGTK_DISABLE_DEPRECATED
6
7
7
VERSION = 2.0.0rc2
8
VERSION = 2.0.0rc2
8
all: switch
9
all: switch
9
10
10
switch: switch.c switch.h
11
switch: switch.c switch.h
11
	${GCC} -o switch2 switch.c ${CFLAGS} ${LIBS}
12
	$(CC) $(CFLAGS) switch.c -o switch2 $(LDFLAGS) $(LIBS)
12
13
13
clean:
14
clean:
14
	-rm -f switch2 *~
15
	-rm -f switch2 *~
15
	
16
	
16
install: all
17
install:
17
	strip switch2
18
	install -d $(DESTDIR)$(PREFIX)/bin
18
	mkdir -p ${PREFIX}/bin
19
	install -d $(DESTDIR)$(mandir)/man1
19
	mkdir -p ${PREFIX}/man
20
	install -d $(DESTDIR)$(docdir)
20
	install -c switch2 ${PREFIX}/bin
21
	install switch2 $(DESTDIR)$(PREFIX)/bin
21
	install -c switch.1 ${PREFIX}/man
22
	install -m 644 switch2.1 $(DESTDIR)$(mandir)/man1
23
	install -m 644 ChangeLog $(DESTDIR)$(docdir)
22
24
23
dist: clean
25
dist: clean
24
	rm -rf /tmp/gtk-theme-switch-$(VERSION)
26
	rm -rf /tmp/gtk-theme-switch-$(VERSION)

Return to bug 310693