12 lines
291 B
Makefile
12 lines
291 B
Makefile
SRC := $(wildcard **/*.c)
|
|
HEADERS := $(wildcard **/*.h)
|
|
HTML := $(wildcard html/*.js html/*.html)
|
|
HTML_SRC := $(addsuffix .c,$(HTML))
|
|
|
|
camera_stream: $(SRC) $(HTML_SRC) $(HEADERS)
|
|
gcc -Werror -g -lpthread -I$(PWD) -o $@ $(filter %.c, $^)
|
|
|
|
html/%.c: html/%
|
|
xxd -i $< > $@.tmp
|
|
mv $@.tmp $@
|