2019-05-07 17:06:00 +03:00
|
|
|
PREFIX = ${HOME}/.idris2
|
|
|
|
export IDRIS2_PATH = ${CURDIR}/prelude/build:${CURDIR}/base/build
|
|
|
|
export IDRIS2_DATA = ${CURDIR}/support
|
2019-05-07 12:42:45 +03:00
|
|
|
|
2019-06-09 13:58:29 +03:00
|
|
|
.PHONY: ttimp idris2 prelude test base clean lib_clean
|
2019-05-07 12:42:45 +03:00
|
|
|
|
2019-06-09 13:58:29 +03:00
|
|
|
all: idris2 test
|
2019-05-07 12:42:45 +03:00
|
|
|
|
2019-06-09 13:58:29 +03:00
|
|
|
idris2: src/YafflePaths.idr
|
|
|
|
idris --build idris2.ipkg
|
2019-05-07 12:42:45 +03:00
|
|
|
|
|
|
|
src/YafflePaths.idr:
|
|
|
|
echo 'module YafflePaths; export yprefix : String; yprefix = "${PREFIX}"' > src/YafflePaths.idr
|
|
|
|
|
|
|
|
#prelude:
|
2019-06-09 13:58:29 +03:00
|
|
|
# make -C libs/prelude YAFFLE=../../idris2
|
2019-05-07 12:42:45 +03:00
|
|
|
|
|
|
|
#base: prelude
|
2019-06-09 13:58:29 +03:00
|
|
|
# make -C libs/base YAFFLE=../../idris2
|
2019-05-07 12:42:45 +03:00
|
|
|
|
|
|
|
#libs : prelude base
|
|
|
|
|
|
|
|
clean: lib_clean
|
|
|
|
make -C src clean
|
|
|
|
make -C tests clean
|
|
|
|
rm -f runtests
|
2019-06-09 13:58:29 +03:00
|
|
|
rm -f idris2
|
2019-05-07 12:42:45 +03:00
|
|
|
|
|
|
|
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
|