better cmake

This commit is contained in:
vaclavt 2022-01-27 00:15:55 +01:00
parent e6f61c9d9f
commit c6bd4e519b
1 changed files with 6 additions and 5 deletions

View File

@ -1,9 +1,10 @@
#!/bin/sh
echo "cleaning"
cmake --build ./build --config Release --target clean -j 4 --
cmake -DCMAKE_BUILD_TYPE=Release .
cmake --build ./ --target clean -j 4 --
echo "building ml"
cmake --build ./build --config Release --target all -j 4 --
cmake --build ./ --target all -j 4 --
echo ""
echo "copying lsp files"
@ -12,13 +13,13 @@ cp stdlib/*.lsp /usr/local/var/mlisp/
echo "copying doc files"
cp doc/*.md /usr/local/var/mlisp/
echo "copying ml file"
cp ./build/ml /usr/local/bin/ml
mv ./ml /usr/local/bin/ml
echo ""
echo "if syntax has changed you may use"
echo "cp utils/Lisp.tmLanguage ~/.vscode/extensions/mattn.lisp-0.1.12/syntaxes/"
echo "or"
echo "cp utils/Lisp.tmLanguage ~/.vscode/extensions/mattn.lisp-0.1.12/syntaxes/"
echo ""
ml -v