Makefile 924 B

1234567891011121314151617181920212223242526272829303132
  1. # skip exercise 6 due to long running time (run it manually)
  2. SURNAME := tremurici
  3. MTRNR := 11907086
  4. EXERCISES := $(foreach i, $(shell seq 1 5) $(shell seq 7 8), exercise$i)
  5. all: $(EXERCISES)
  6. report:
  7. pandoc report.md -V fontsize:12pt -V geometry:"top=2cm, bottom=2cm" -o report.pdf
  8. exercise%: exercise%.smt2
  9. z3 $< | tee $@.out
  10. exercise6: exercise6.py
  11. python exercise6.py | tee $@.out
  12. exercise8: exercise8.py
  13. python exercise8.py | tee $@.out
  14. submission: $(EXERCISES) report
  15. rm -f $(SURNAME)-$(MTRNR).zip
  16. $(foreach i, $(shell seq 1 5) 7, cp exercise$i.smt2 $(SURNAME)-$(MTRNR)-$i-input.txt;)
  17. $(foreach i, 6 8, cp exercise$i.py $(SURNAME)-$(MTRNR)-$i-input.txt;)
  18. $(foreach i, $(shell seq 1 5) 7 8, cp exercise$i.out $(SURNAME)-$(MTRNR)-$i-output.txt;)
  19. mv report.pdf $(SURNAME)-$(MTRNR).pdf
  20. zip -r $(SURNAME)-$(MTRNR).zip $(SURNAME)-$(MTRNR)*
  21. clean:
  22. rm -f *.out *.txt *.zip *.pdf
  23. .PHONY: all submission report