Idris2-boot/Makefile
Edwin Brady 411b8ccc07 Support eta in unification
Also added (necessarily) a rule for lambdas
2019-05-07 15:06:00 +01:00

49 lines
1.1 KiB
Makefile

PREFIX = ${HOME}/.idris2
export IDRIS2_PATH = ${CURDIR}/prelude/build:${CURDIR}/base/build
export IDRIS2_DATA = ${CURDIR}/support
.PHONY: ttimp yaffle prelude test base clean lib_clean
all: yaffle test
yaffle: src/YafflePaths.idr
idris --build yaffle.ipkg
src/YafflePaths.idr:
echo 'module YafflePaths; export yprefix : String; yprefix = "${PREFIX}"' > src/YafflePaths.idr
#prelude:
# make -C prelude YAFFLE=../yaffle
#base: prelude
# make -C base YAFFLE=../yaffle
#libs : prelude base
clean: lib_clean
make -C src clean
make -C tests clean
rm -f runtests
rm -f yaffle
lib_clean:
# make -C prelude clean
# make -C base clean
test:
idris --build tests.ipkg
make -C tests
#install:
# mkdir -p ${PREFIX}/bin
# mkdir -p ${PREFIX}/blodwen/support/chez
# mkdir -p ${PREFIX}/blodwen/support/chicken
# mkdir -p ${PREFIX}/blodwen/support/racket
# make -C prelude install BLODWEN=../blodwen
# make -C base install BLODWEN=../blodwen
#
# install blodwen ${PREFIX}/bin
# install support/chez/* ${PREFIX}/blodwen/support/chez
# install support/chicken/* ${PREFIX}/blodwen/support/chicken
# install support/racket/* ${PREFIX}/blodwen/support/racket