SOURCE = aoba30v3.pl

test: test_shard1.passed test_shard2.passed test_shard3.passed test_shard4.passed
	@echo "PASS"

test_shard1.passed: $(SOURCE) test_shard.sh test_base.passed
	./test_shard.sh 2020 $< && touch $@

test_shard2.passed: $(SOURCE) test_shard.sh test_base.passed
	./test_shard.sh 2021 $< && touch $@

test_shard3.passed: $(SOURCE) test_shard.sh test_base.passed
	./test_shard.sh 2022 $< && touch $@

test_shard4.passed: $(SOURCE) test_shard.sh test_base.passed
	./test_shard.sh 2023 $< && touch $@

test_base.passed: $(SOURCE) test_base.sh
	./test_base.sh $< && touch $@


clean:
	-rm -f test_*.passed

backup:
	-rm -f backup.tar.gz
	tar czf backup.tar.gz *.pl *.sh *.log *.txt Makefile
