Makefile 795 B

123456789101112131415161718192021222324252627282930313233343536
  1. # Agda 2
  2. # Makefile for successful tests
  3. # Author: Andreas Abel, Ulf Norell
  4. # Created: 2004-12-03
  5. TOP=../..
  6. include $(TOP)/mk/paths.mk
  7. # Verbosity
  8. V = 0
  9. # Getting all agda files
  10. allagda=$(patsubst %.agda,%.test,$(filter-out $(excluded),$(shell find . -name "*.agda" | sort)))
  11. # allagda=$(patsubst %.agda,%.test,$(shell find . -name "*.agda"))
  12. alllagda=$(patsubst %.lagda,%.test,$(filter-out $(excluded),$(shell find . -name "*.lagda" | sort)))
  13. default : all
  14. all : $(allagda) $(alllagda)
  15. RUN_AGDA = $(AGDA_BIN) -i. -i.. --vim --ignore-interfaces --no-libraries -v$(V) -v impossible:10
  16. cleanup = $(if $(call does_compile,$1),rm -rf MAlonzo $1,true)
  17. %.test : %.agda
  18. @echo $<
  19. @$(RUN_AGDA) $<
  20. @$(check_$*)
  21. @$(cleanup_$*)
  22. @$(call cleanup,$*)
  23. clean :
  24. @rm -f *~ *.agdai .*.agda.vim
  25. #EOF