Making installing easier
This commit is contained in:
parent
884919fe99
commit
70bc496be8
|
@ -12,3 +12,4 @@ test
|
|||
*.rkt
|
||||
README.html
|
||||
*.import.*
|
||||
deps
|
||||
|
|
13
Makefile
13
Makefile
|
@ -3,14 +3,20 @@ SCHEME=chibi
|
|||
|
||||
all: build
|
||||
|
||||
build:
|
||||
markdown README.md > README.html
|
||||
build: deps
|
||||
echo "#!/bin/sh" > compile-r7rs
|
||||
echo "chibi-scheme -A ${PREFIX}/lib/compile-r7rs ${PREFIX}/lib/compile-r7rs/main.scm \$$@" >> compile-r7rs
|
||||
|
||||
deps:
|
||||
mkdir -p deps
|
||||
git clone https://git.sr.ht/~retropikzel/foreign-c deps/foreign-c --depth=1
|
||||
git clone https://git.sr.ht/~retropikzel/foreign-c-srfi-170 deps/foreign-c-srfi-170 --depth=1
|
||||
|
||||
install:
|
||||
cd deps/foreign-c && make all install
|
||||
cd deps/foreign-c-srfi-170 && make all install
|
||||
mkdir -p ${PREFIX}/lib/compile-r7rs
|
||||
cp -r libs ${PREFIX}/lib/compile-r7rs/libs
|
||||
cp -r libs ${PREFIX}/lib/compile-r7rs/
|
||||
cp compile-r7rs.scm ${PREFIX}/lib/compile-r7rs/main.scm
|
||||
install compile-r7rs ${PREFIX}/bin/compile-r7rs
|
||||
|
||||
|
@ -63,5 +69,6 @@ clean:
|
|||
rm -rf README.txt
|
||||
rm -rf dist
|
||||
rm -rf test
|
||||
rm -rf deps
|
||||
|
||||
|
||||
|
|
13
README.md
13
README.md
|
@ -201,19 +201,10 @@ First install linux dependencies:
|
|||
|
||||
apt-get install build-essential make libffi-dev
|
||||
|
||||
Then install Scheme library dependencies:
|
||||
|
||||
git clone https://git.sr.ht/~retropikzel/foreign-c --depth=1
|
||||
cd foreign-c
|
||||
make all install
|
||||
|
||||
git clone https://git.sr.ht/~retropikzel/foreign-c-srfi-170 --depth=1
|
||||
cd foreign-c-srfi-170
|
||||
make all install
|
||||
|
||||
And then run:
|
||||
|
||||
make all install
|
||||
make
|
||||
make install
|
||||
|
||||
## Usage
|
||||
<a name="#usage"></a>
|
||||
|
|
Loading…
Reference in New Issue