Idris-dev/Makefile

83 lines
1.9 KiB
Makefile
Raw Normal View History

.PHONY: build configure doc install linecount nodefault pinstall lib_clean relib fast test_js test_c stylize test test_clean lib_doc lib_doc_clean user_doc_html user_doc_pdf user_docs
ARGS=
TEST-JOBS=
TEST-ARGS=
2013-03-21 20:14:37 +04:00
include config.mk
2013-03-21 20:14:37 +04:00
-include custom.mk
ifdef CI
CABALFLAGS += -f CI
ifndef APPVEYOR
TEST-ARGS += --color always
endif
endif
2013-03-21 20:14:37 +04:00
install:
$(CABAL) v1-install $(CABALFLAGS)
2011-10-14 20:59:53 +04:00
2013-03-21 20:14:37 +04:00
pinstall: CABALFLAGS += --enable-executable-profiling
pinstall: dist/setup-config
$(CABAL) v1-install $(CABALFLAGS)
2011-10-25 15:46:47 +04:00
2013-03-21 20:14:37 +04:00
build: dist/setup-config
$(CABAL) v1-build $(CABALFLAGS)
2011-10-14 20:59:53 +04:00
test: doc test_c stylize
stylize:
./stylize.sh
test_c:
$(CABAL) v1-test $(ARGS) --test-options \
"$(TEST-ARGS) --rerun-update +RTS -N$(TEST-JOBS) -RTS"
test_js:
$(CABAL) v1-test $(ARGS) --test-options \
"$(TEST-ARGS) --node --rerun-update +RTS -N$(TEST-JOBS) -RTS"
test_update:
$(CABAL) v1-test $(ARGS) --test-options \
"$(TEST-ARGS) --accept +RTS -N$(TEST-JOBS) -RTS"
test_clean:
rm -f test/*~
rm -f test/*/output
lib_clean:
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris RTS=../../dist/build/rts/libidris_rts clean
relib: lib_clean
$(CABAL) v1-install $(CABALFLAGS)
2013-03-21 20:14:37 +04:00
linecount:
wc -l src/Idris/*.hs src/Idris/Elab/*.hs src/Idris/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs src/Util/*.hs
2011-10-14 20:59:53 +04:00
#Note: this doesn't yet link to Hackage properly
2013-03-21 20:14:37 +04:00
doc: dist/setup-config
$(CABAL) v1-haddock --hyperlink-source --html --hoogle --html-location="https://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
lib_doc:
2014-06-12 20:50:04 +04:00
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris doc
lib_doc_clean:
2014-06-12 20:50:04 +04:00
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris doc_clean
2011-10-14 20:59:53 +04:00
user_docs: user_doc_html user_doc_pdf
user_doc_clean:
$(MAKE) -C docs clean
user_doc_html:
$(MAKE) -C docs html
user_doc_pdf:
$(MAKE) -C docs latexpdf
fast:
$(CABAL) v1-install $(CABALFLAGS) --ghc-option=-O0
2013-03-21 20:14:37 +04:00
dist/setup-config:
$(CABAL) v1-configure $(CABALFLAGS)