paths.mk 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. include $(TOP)/mk/versions.mk
  2. MACRO_DIR = $(TOP)/macros
  3. SRC_DIR = $(TOP)/src
  4. MAIN_SRC_DIR = $(SRC_DIR)/main
  5. FULL_SRC_DIR = $(SRC_DIR)/full
  6. CORE_SRC_DIR = $(SRC_DIR)/core
  7. TRANSL_SRC_DIR = $(SRC_DIR)/transl
  8. COMPAT_SRC_DIR = $(SRC_DIR)/compat
  9. # Note: To use "dist" as the build directory (the default), modify
  10. # BUILD_DIR below. At the time of writing GHC's recompilation checker
  11. # doesn't seem to handle Agda very well: if you compile, switch to
  12. # another branch, and then switch back, then many (but not all)
  13. # modules are likely to be recompiled. However, work seems to be under
  14. # way to improve the situation:
  15. #
  16. # https://ghc.haskell.org/trac/ghc/ticket/8144
  17. # https://ghc.haskell.org/trac/ghc/ticket/4012
  18. #
  19. # Thus it may be worthwhile to keep the present infrastructure with
  20. # different build directories for different versions of Agda.
  21. BUILD_DIR = $(TOP)/dist-$(VERSION)
  22. OUT_DIR = $(TOP)/out
  23. FULL_OUT_DIR = $(OUT_DIR)/full
  24. CORE_OUT_DIR = $(OUT_DIR)/core
  25. TRANSL_OUT_DIR = $(OUT_DIR)/transl
  26. DOC_DIR = $(TOP)/doc
  27. HADDOCK_DIR = $(DOC_DIR)/haddock
  28. AGDA_BIN ?= $(BUILD_DIR)/build/agda/agda
  29. AGDA_BIN := $(abspath $(AGDA_BIN))
  30. AGDA_MODE ?= $(BUILD_DIR)/build/agda-mode/agda-mode
  31. AGDA_MODE := $(abspath $(AGDA_MODE))
  32. AGDA_TESTS_BIN ?= $(BUILD_DIR)/build/agda-tests/agda-tests
  33. AGDA_TESTS_BIN := $(abspath $(AGDA_TESTS_BIN))