mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 17:21:59 +03:00
2477d060a8
On FreeBSD `nproc` is not available in a standard installation, so the equivalent `sysctl -n hw.ncpu` is used.
28 lines
710 B
Makefile
28 lines
710 B
Makefile
INTERACTIVE ?= --interactive
|
|
ifeq ($(shell uname), FreeBSD)
|
|
NPROC = sysctl -n hw.ncpu
|
|
else
|
|
NPROC = nproc
|
|
endif
|
|
threads ?= `$(NPROC)`
|
|
|
|
.PHONY: testbin test
|
|
|
|
test:
|
|
./build/exec/runtests $(IDRIS2) $(INTERACTIVE) --failure-file failures --threads $(threads) --only $(only)
|
|
|
|
retest:
|
|
./build/exec/runtests $(IDRIS2) $(INTERACTIVE) --failure-file failures --threads $(threads) --only-file failures --only $(only)
|
|
|
|
testbin:
|
|
${IDRIS2} --build tests.ipkg
|
|
|
|
clean:
|
|
$(RM) failures
|
|
$(RM) -r build
|
|
$(RM) -r **/**/build
|
|
@find . -type f -name 'output' -exec rm -rf {} \;
|
|
@find . -type f -name '*.ttc' -exec rm -f {} \;
|
|
@find . -type f -name '*.ttm' -exec rm -f {} \;
|
|
@find . -type f -name '*.ibc' -exec rm -f {} \;
|