4
include $(TOP)/mk/paths.mk
5
include $(TOP)/mk/config.mk
6
include $(TOP)/mk/rules.mk
8
src_files = $(shell $(FIND) $(FULL_SRC_DIR) -name '*hs') \
9
$(shell $(FIND) $(FULL_SRC_DIR) -name '*.x') \
10
$(shell $(FIND) $(FULL_SRC_DIR) -name '*.y')
14
CONFIGURED = dist/.configured
16
AGDA_BIN_P = dist/build/agda/agda_p
18
$(CONFIGURED) : Agda-executable.cabal ../../Agda.cabal
19
$(RUNSETUP) configure --user
22
.uptodate : $(src_files)
23
@echo Rebuilding executable...
24
@rm -f $(AGDA_BIN) $(AGDA_BIN_P)
27
$(AGDA_BIN) : Main.hs $(CONFIGURED) .uptodate
32
$(AGDA_BIN_P) : Main.hs .uptodate
33
$(GHC) --make Main.hs -O -prof -auto-all -o $@