This preserves configuration options after a make clean (and also allows you to call ninja-build directly).
16 lines
232 B
Makefile
16 lines
232 B
Makefile
out = build
|
|
|
|
all: build.ninja
|
|
@ninja-build -f $<
|
|
|
|
build.ninja:
|
|
python3 configure.py
|
|
|
|
clean:
|
|
rm -rf $(out)
|
|
|
|
cscope:
|
|
find -name '*.[chS]' -o -name "*.cc" -o -name "*.hh" | cscope -bq -i-
|
|
@echo cscope index created
|
|
.PHONY: cscope
|