16 lines
315 B
Makefile
16 lines
315 B
Makefile
solution-part%: solution-part%.c
|
|
gcc $< -o $@ -lm
|
|
|
|
test1-%: solution-% example1.txt
|
|
$< example1.txt
|
|
|
|
test2-%: solution-% example2.txt
|
|
$< example2.txt
|
|
|
|
test3-%: solution-% example3.txt
|
|
$< example3.txt
|
|
|
|
run-%: solution-% realinput.txt
|
|
$< realinput.txt
|
|
|
|
.PHONY: $(patsubst %,run-%, 1 2) $(patsubst %,test-%, 1 2)
|