34 lines
771 B
Plaintext
34 lines
771 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
|
|
+ $(BSD_INSTALL_MAN) switch.1 ${PREFIX}/man/man1
|
|
|
|
dist: clean
|
|
rm -rf /tmp/gtk-theme-switch-$(VERSION)
|