initial commit
This commit is contained in:
commit
dcb7debff6
29 changed files with 1276 additions and 0 deletions
31
templates/makefile
Normal file
31
templates/makefile
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
.PHONY: run debug clean setup init scrape
|
||||
|
||||
VERSION ?= 20
|
||||
|
||||
SRC = $(word 2,$(MAKECMDGOALS))
|
||||
|
||||
.SILENT:
|
||||
|
||||
run:
|
||||
sh scripts/run.sh $(SRC)
|
||||
|
||||
debug:
|
||||
sh scripts/debug.sh $(SRC)
|
||||
|
||||
clean:
|
||||
rm -rf build/*
|
||||
|
||||
setup:
|
||||
test -d build || mkdir -p build
|
||||
test -d io || mkdir -p io
|
||||
test -f compile_flags.txt && echo -std=c++$(VERSION) >>compile_flags.txt
|
||||
test -f .clangd && echo -e "\t\t-std=c++$(VERSION)" >>.clangd
|
||||
|
||||
init:
|
||||
make setup
|
||||
|
||||
scrape:
|
||||
sh scripts/scrape.sh $(word 2,$(MAKECMDGOALS)) $(word 3,$(MAKECMDGOALS)) $(word 4,$(MAKECMDGOALS))
|
||||
|
||||
%:
|
||||
@:
|
||||
Loading…
Add table
Add a link
Reference in a new issue