From: Marco Peereboom Date: Fri, 2 Oct 2009 19:23:48 +0000 (+0000) Subject: Make makefiles work just like ports; this way we can just make install X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=58e67eb7f2fde8dab00e48e8e03c67a67d25876c;p=spectrwm.git Make makefiles work just like ports; this way we can just make install over a pkg :-) --- 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