mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-11-14 13:56:59 +03:00
74 lines
1.6 KiB
Makefile
74 lines
1.6 KiB
Makefile
.PHONY: build configure doc install linecount nodefault pinstall lib_clean relib fast test_c test lib_doc lib_doc_clean user_doc_html user_doc_pdf user_docs
|
|
|
|
include config.mk
|
|
-include custom.mk
|
|
|
|
ifdef CI
|
|
CABALFLAGS += -f CI
|
|
endif
|
|
|
|
install:
|
|
$(CABAL) install $(CABALFLAGS)
|
|
|
|
pinstall: CABALFLAGS += --enable-executable-profiling
|
|
pinstall: dist/setup-config
|
|
$(CABAL) install $(CABALFLAGS)
|
|
|
|
build: dist/setup-config
|
|
$(CABAL) build $(CABALFLAGS)
|
|
|
|
test: doc test_c
|
|
|
|
test_c:
|
|
$(MAKE) -C test IDRIS=../dist/build/idris
|
|
|
|
test_java:
|
|
$(MAKE) -C test IDRIS=../dist/build/idris test_java
|
|
|
|
test_llvm:
|
|
$(MAKE) -C test IDRIS=../dist/build/idris test_llvm
|
|
|
|
test_js:
|
|
$(MAKE) -C test IDRIS=../dist/build/idris test_js
|
|
|
|
test_all:
|
|
$(MAKE) test
|
|
$(MAKE) test_llvm
|
|
$(MAKE) test_java
|
|
|
|
lib_clean:
|
|
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris RTS=../../dist/build/rts/libidris_rts clean
|
|
|
|
relib: lib_clean
|
|
$(CABAL) install $(CABALFLAGS)
|
|
|
|
linecount:
|
|
wc -l src/Idris/*.hs src/Idris/Core/*.hs src/IRTS/*.hs src/Pkg/*.hs
|
|
|
|
#Note: this doesn't yet link to Hackage properly
|
|
doc: dist/setup-config
|
|
$(CABAL) haddock --hyperlink-source --html --hoogle --html-location="http://hackage.haskell.org/packages/archive/\$$pkg/latest/doc/html" --haddock-options="--title Idris"
|
|
|
|
lib_doc:
|
|
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris doc
|
|
|
|
lib_doc_clean:
|
|
$(MAKE) -C libs IDRIS=../../dist/build/idris/idris doc_clean
|
|
|
|
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) install $(CABALFLAGS) --ghc-option=-O0
|
|
|
|
dist/setup-config:
|
|
$(CABAL) configure $(CABALFLAGS)
|