nd_sys_prog/Makefile
github-classroom[bot] 4719d0fa73 Initial commit
2025-01-09 14:30:05 +00:00

16 lines
416 B
Makefile

BRANCH?= $(shell git rev-parse --abbrev-ref HEAD)
test:
@$(MAKE) -sk test-all
test-all: test-code test-quiz
test-code:
@[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \
|| [ ! -f "$(BRANCH)/Makefile" ] \
|| (cd $(BRANCH) && make -s test)
test-quiz:
@[ "$(BRANCH)" = "master" -o -z "$(BRANCH)" ] \
|| [ ! -f "$(BRANCH)/answers.json" -a ! -f "$(BRANCH)/answers.yaml" ] \
|| .scripts/check.py