mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-25 12:50:32 +01:00
Add simple makefile to run all programs.
This commit is contained in:
18
2016/Makefile
Normal file
18
2016/Makefile
Normal file
@@ -0,0 +1,18 @@
|
||||
SOLUTIONS=$(addsuffix /solution, $(wildcard day-*))
|
||||
TESTS=$(sort $(patsubst day-%/solution, test-%, $(SOLUTIONS)))
|
||||
|
||||
.PHONY: all clean test
|
||||
|
||||
all: $(SOLUTIONS)
|
||||
|
||||
clean:
|
||||
$(RM) $(SOLUTIONS)
|
||||
|
||||
day-%/solution: day-%/solution.rs
|
||||
rustc -o $@ $^
|
||||
|
||||
# Utility target to run all the programs
|
||||
test: $(TESTS)
|
||||
|
||||
test-%: day-%/solution
|
||||
$^ $(dir $<)input.txt
|
||||
Reference in New Issue
Block a user