doorbell

diff doorbelld/Makefile @ 5:f21ae31ef0e7

craptacular
author John Tsiombikas <nuclear@member.fsf.org>
date Tue, 15 Mar 2016 08:35:21 +0200
parents d3f2a2b19504
children
line diff
     1.1 --- a/doorbelld/Makefile	Mon Mar 14 04:20:59 2016 +0200
     1.2 +++ b/doorbelld/Makefile	Tue Mar 15 08:35:21 2016 +0200
     1.3 @@ -5,9 +5,16 @@
     1.4  CFLAGS = -pedantic -Wall -g
     1.5  LDFLAGS = -lwcam -lpthread
     1.6  
     1.7 +.PHONY: all
     1.8 +all: .clang_complete $(bin)
     1.9 +
    1.10  $(bin): $(obj)
    1.11  	$(CC) -o $@ $(obj) $(LDFLAGS)
    1.12  
    1.13 +.clang_complete:
    1.14 +	echo '-x c' >$@
    1.15 +	for i in $(CFLAGS); do echo $$i >>$@; done
    1.16 +
    1.17  .PHONY: clean
    1.18  clean:
    1.19  	rm -f $(obj) $(bin)