From 58e67eb7f2fde8dab00e48e8e03c67a67d25876c Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 2 Oct 2009 19:23:48 +0000 Subject: [PATCH] Make makefiles work just like ports; this way we can just make install over a pkg :-) --- Makefile | 5 ++++- lib/Makefile | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index d7ed18f..81dc65e 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ # $scrotwm$ .include +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 diff --git a/lib/Makefile b/lib/Makefile index 1442460..e7c9ebe 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,6 +2,8 @@ .include +PREFIX?=/usr/local + LIB= swmhack NOMAN= yes SRCS= swm_hack.c -- 1.7.10.4