You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
430 B
22 lines
430 B
|
|
CARGO_FEATURE_FLAGS?=
|
|
|
|
.PHONY: all
|
|
.NOTPARALLEL: all
|
|
all:
|
|
$(MAKE) part1
|
|
$(MAKE) part2
|
|
|
|
.NOTPARALLEL: part1
|
|
part1: $(wildcard src/*.rs)
|
|
cargo build --release $(addprefix --features ,$(CARGO_FEATURE_FLAGS))
|
|
mv -f target/release/day4 $@
|
|
|
|
.NOTPARALLEL: part2
|
|
part2: $(wildcard src/*.rs)
|
|
cargo build --release --features $@ $(addprefix --features ,$(CARGO_FEATURE_FLAGS))
|
|
mv -f target/release/day4 $@
|
|
|
|
clean:
|
|
rm -f part{1,2}
|