Up through lcthw ex 15
This commit is contained in:
@@ -19,17 +19,17 @@ clean:
|
||||
build: $(BUILD_TARGETS)
|
||||
|
||||
.PHONY: gtest
|
||||
gtest:
|
||||
gtest: $(BUILD_TARGETS)
|
||||
@$(foreach bt, $(BUILD_TARGETS), make .gtest.$(bt) &&) printf '\ngYAY\n'
|
||||
|
||||
.gtest.%:
|
||||
.gtest.%: %
|
||||
@if test -f .$*.argv; then readarray -t test_argv <.$*.argv; fi && \
|
||||
printf '\n==> %s\n' "$*" && $(GDBRUN) ./$* "$${test_argv[@]}"
|
||||
|
||||
.PHONY: test
|
||||
test:
|
||||
test: $(BUILD_TARGETS)
|
||||
@$(foreach bt, $(BUILD_TARGETS), make .test.$(bt) &&) printf '\nYAY\n'
|
||||
|
||||
.test.%:
|
||||
.test.%: %
|
||||
@if test -f .$*.argv; then readarray -t test_argv <.$*.argv; fi && \
|
||||
printf '\n==> %s\n' "$*" && ./$* "$${test_argv[@]}"
|
||||
|
Reference in New Issue
Block a user