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.

24 lines
450 B

4 years ago
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 $@
4 years ago
strip $@
4 years ago
.NOTPARALLEL: part2
part2: $(wildcard src/*.rs)
cargo build --release --features $@ $(addprefix --features ,$(CARGO_FEATURE_FLAGS))
mv -f target/release/day4 $@
4 years ago
strip $@
4 years ago
clean:
rm -f part{1,2}