diff --git a/INSTALL.md b/INSTALL.md new file mode 100644 index 0000000..d081692 --- /dev/null +++ b/INSTALL.md @@ -0,0 +1,27 @@ +# Install + +## Linux + +First install Gauche Scheme, on Debian/Ubuntu + + apt-get install gauche + +Then build and install compile-scheme + + make + make install + +## Mac OS + +First install Gauche Scheme, on Debian/Ubuntu + + brew install gauche + +Then build and install compile-scheme + + make + make install + +## Windows +To install on windows first install Gauche Scheme. Then run install.bat as +administrator. diff --git a/Makefile b/Makefile index c94d745..468020a 100644 --- a/Makefile +++ b/Makefile @@ -19,7 +19,12 @@ all: build build: build-gauche README.md: doc/compile-scheme.1 - printf "
\n$$(MANWIDTH=80 man -l doc/compile-scheme.1)\n" > README.md + echo "
" > README.md + echo "$$(MANWIDTH=80 man -l doc/compile-scheme.1)" >> README.md + echo "" > README.md + cat README_ADDITIONAL.md >> README.md + echo "" > README.md + echo "" >> README.md build-chibi: echo "#!/bin/sh" > compile-scheme diff --git a/README_ADDITIONAL.md b/README_ADDITIONAL.md new file mode 100644 index 0000000..3ce89c9 --- /dev/null +++ b/README_ADDITIONAL.md @@ -0,0 +1,39 @@ +# Install + +## Linux + +First install Gauche Scheme, on Debian/Ubuntu for example + + apt-get install gauche + +Then build and install compile-scheme + + make + make install + +## Mac OS + +First install Gauche Scheme, with brew for example + + brew install gauche + +Then build and install compile-scheme + + make + make install + +## Windows +To install on windows first install Gauche Scheme. Then run install.bat as +administrator. + +# Usage + +## Powershell + + $env:COMPILE_SCHEME="gauche" ; compile-scheme -o main main.scm + .\main.bat + +## Wine cmd + + set COMPILE_SCHEME=gauche + diff --git a/README_WINDOWS.md b/README_WINDOWS.md deleted file mode 100644 index 530826b..0000000 --- a/README_WINDOWS.md +++ /dev/null @@ -1,2 +0,0 @@ -To install on windows first install Gauche Scheme. Then run install.bat as -administrator.