mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-11 06:14:41 +03:00
4de7b2133a
Co-authored-by: Johann Rudloff <johann@sinyax.net>
31 lines
571 B
Makefile
31 lines
571 B
Makefile
include ../../config.mk
|
|
|
|
all: build
|
|
|
|
clean:
|
|
-$(RM) support-sep.ss
|
|
|
|
.PHONY: install build
|
|
|
|
build: support-sep.ss
|
|
|
|
install: build
|
|
mkdir -p ${PREFIX}/idris2-${IDRIS2_VERSION}/support/chez
|
|
install *.ss ${PREFIX}/idris2-${IDRIS2_VERSION}/support/chez
|
|
|
|
support-sep.ss: support.ss
|
|
# start library header
|
|
echo "(library (support) (export" > $@
|
|
|
|
# print the list of exports
|
|
cat support.ss \
|
|
| sed -n 's|(define (\?\([^ )]*\).*|\1|p' \
|
|
>> $@
|
|
echo ") (import (chezscheme))" >> $@
|
|
|
|
# copy the code
|
|
cat $< >> $@
|
|
|
|
# close the bracket
|
|
echo ") ; end of (library)" >> $@
|