JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Make makefiles work just like ports; this way we can just make install
[spectrwm.git] / Makefile
index 9e432cc..81dc65e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,19 @@
 # $scrotwm$
 .include <bsd.xconf.mk>
 
+PREFIX?=/usr/local
+
+BINDIR=${PREFIX}/bin
 SUBDIR= lib
 
 PROG=scrotwm
-MAN=scrotwm.1
+MAN=scrotwm.1 scrotwm_es.1
 
 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