JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Make makefiles work just like ports; this way we can just make install
authorMarco Peereboom <marco@conformal.com>
Fri, 2 Oct 2009 19:23:48 +0000 (19:23 +0000)
committerMarco Peereboom <marco@conformal.com>
Fri, 2 Oct 2009 19:23:48 +0000 (19:23 +0000)
over a pkg :-)

Makefile
lib/Makefile

index d7ed18f..81dc65e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,9 @@
 # $scrotwm$
 .include <bsd.xconf.mk>
 
+PREFIX?=/usr/local
+
+BINDIR=${PREFIX}/bin
 SUBDIR= lib
 
 PROG=scrotwm
@@ -10,7 +13,7 @@ CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3
 CPPFLAGS+= -I${X11BASE}/include
 LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr
 
-MANDIR= ${X11BASE}/man/cat
+MANDIR= ${PREFIX}/man/cat
 
 obj: _xenocara_obj
 
index 1442460..e7c9ebe 100644 (file)
@@ -2,6 +2,8 @@
 
 .include <bsd.xconf.mk>
 
+PREFIX?=/usr/local
+
 LIB=    swmhack
 NOMAN= yes
 SRCS=  swm_hack.c