JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Fancy clang stuff
[spectrwm.git] / Makefile
index 6b3c93f..af73051 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -7,8 +7,8 @@ BINDIR=${PREFIX}/bin
 SUBDIR= lib
 
 PROG=scrotwm
-#MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1 scrotwm_pt.1 scrotwm_ru.1
-MAN=scrotwm.1
+#MAN=scrotwm_pt.1 scrotwm_ru.1
+MAN=scrotwm.1 scrotwm_es.1 scrotwm_it.1
 
 CFLAGS+=-std=c89 -Wall -Wno-uninitialized -ggdb3
 # Uncomment define below to disallow user settable clock format string
@@ -23,5 +23,19 @@ MANDIR= ${PREFIX}/man/man
 
 obj: _xenocara_obj
 
+# clang targets
+.if ${.TARGETS:M*analyze*}
+CC=clang
+CXX=clang++
+CPP=clang -E
+CFLAGS+=--analyze
+.elif ${.TARGETS:M*clang*}
+CC=clang
+CXX=clang++
+CPP=clang -E
+.endif
+
+analyze: all
+clang: all
 .include <bsd.prog.mk>
 .include <bsd.xorg.mk>