update makefile

This commit is contained in:
Rígille S. B. Menezes 2021-08-13 14:14:49 -03:00
parent 1319f4e188
commit 6bf1600b39
2 changed files with 13 additions and 1 deletions

2
.gitignore vendored
View File

@ -5,6 +5,8 @@ scripts/
src/_*
src/tmp*
bin/hs/cabal.project.local*
bin/scm/scheme/
bin/scm/bin/
tmp.js
.vscode
*.orig

View File

@ -1,17 +1,27 @@
all: bin/kind-scm kind-scm.deb
all: bin/kind-scm
deb: kind-scm.deb
# compiles kind files to scheme you could replace kind-scm with kind
bootstrap:
cd ../../base && kind-scm Kind.Comp.Target.Scheme.bootstrap --run
clean:
rm src/*.wpo
rm src/*.so
rm src/*.chez
rm src/*.generated.c
rm bin/*
bin/kind-scm:
cd src/ && scheme compile.scm
chmod +x bin/kind-scm
kind-scm.deb: bin/kind-scm
mkdir -p kind-scm_1.0.1-0_amd64/usr/local/bin/
cp bin/kind-scm kind-scm_1.0.1-0_amd64/usr/local/bin/
dpkg-deb --root-owner-group --build kind-scm_1.0.1-0_amd64/ bin/kind-scm_1.0.1-0_amd64.deb
install: bin/kind-scm
chmod +x bin/kind-scm
cp bin/kind-scm /usr/local/bin/