From: Marco Peereboom Date: Tue, 25 Oct 2011 20:19:29 +0000 (-0500) Subject: Fancy clang stuff X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=ff40361700c5cb93aacf742a5001f3c2d98d963c;p=spectrwm.git Fancy clang stuff --- diff --git a/Makefile b/Makefile index 9e2e5f1..af73051 100644 --- a/Makefile +++ b/Makefile @@ -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 .include