# $scrotwm$
.include <bsd.xconf.mk>
+PREFIX?=/usr/local
+
+BINDIR=${PREFIX}/bin
+SUBDIR= lib
+
PROG=scrotwm
-NOMAN=
-#MAN=scrotwm.1
+MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm_pt.1 scrotwm_ru.1
+CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3
+# Uncomment define below to disallow user settable clock format string
+#CFLAGS+=-DSWM_DENY_CLOCK_FORMAT
CPPFLAGS+= -I${X11BASE}/include
-LDADD+=-L${X11BASE}/lib -lX11
+LDADD+=-lutil -L${X11BASE}/lib -lX11 -lXrandr
+
+MANDIR= ${PREFIX}/man/cat
-MANDIR= ${X11BASE}/man/cat
+scrotwm_ru.cat1: scrotwm_ru.1
+ nroff -mandoc ${.CURDIR}/scrotwm_ru.1 > ${.TARGET}
obj: _xenocara_obj