51894f5bd4
to avoid clashing with sh(1) builtin. Submitted by: Tobias Reifenberger <treif@mayn.de>
34 lines
807 B
Plaintext
34 lines
807 B
Plaintext
|
|
$FreeBSD$
|
|
|
|
--- Makefile.orig Fri Apr 13 17:57:24 2001
|
|
+++ Makefile Tue Apr 17 09:31:20 2001
|
|
@@ -1,7 +1,8 @@
|
|
-GCC = cc
|
|
-PREFIX=/usr/local
|
|
-CFLAGS = -O2 -Wall $(shell gtk-config --cflags)
|
|
-LIBS = $(shell gtk-config --libs)
|
|
+GCC = ${CC}
|
|
+PREFIX?=/usr/local
|
|
+GTK_CONFIG?=gtk-config
|
|
+CFLAGS += -Wall $(shell $(GTK_CONFIG) --cflags)
|
|
+LIBS = $(shell $(GTK_CONFIG) --libs)
|
|
VERSION = 1.0.1
|
|
all: switch
|
|
|
|
@@ -12,11 +13,10 @@
|
|
-rm -f switch *~
|
|
|
|
install: all
|
|
- strip switch
|
|
mkdir -p ${PREFIX}/bin
|
|
- mkdir -p ${PREFIX}/man
|
|
- install -c switch ${PREFIX}/bin
|
|
- install -c switch.1 ${PREFIX}/man
|
|
+ mkdir -p ${PREFIX}/man/man1
|
|
+ $(BSD_INSTALL_PROGRAM) switch ${PREFIX}/bin/gtk-theme-switch
|
|
+ $(BSD_INSTALL_MAN) switch.1 ${PREFIX}/man/man1/gtk-theme-switch.1
|
|
|
|
dist: clean
|
|
rm -rf /tmp/gtk-theme-switch-$(VERSION)
|