diff --git a/.gitignore b/.gitignore index 8c029f8..418fdb6 100644 --- a/.gitignore +++ b/.gitignore @@ -18,3 +18,4 @@ tmp deb *.deb test-result.txt +compile-scheme.pdf diff --git a/Makefile b/Makefile index 31ca66d..a3b54a8 100644 --- a/Makefile +++ b/Makefile @@ -15,9 +15,11 @@ STATIC_LIBS=libs.util.a libs.library-util.a libs.data.a libs.srfi-64-util.a all: build-chibi -readme: manpage.1 +README.md: doc/compile-scheme.1 printf "
\n$$(MANWIDTH=80 man -l doc/compile-scheme.1)\n
" > README.md - cat README.md > README.html + +compile-scheme.pdf: doc/compile-scheme.1 + mandoc -T pdf -l doc/compile-scheme.1 > compile-scheme.pdf build-chibi: echo "#!/bin/sh" > compile-scheme @@ -152,17 +154,6 @@ test-r7rs-php-docker: docker run -v "${PWD}":/workdir -w /workdir -t ${DOCKERTAG} sh -c "make SCHEME=${SCHEME} test-r7rs-php" clean: - rm -rf test-r7rs - rm -rf compile-scheme - find . -name "*.so" -delete - find . -name "*.o*" -delete - find . -name "*.a*" -delete - find . -name "*.rkt" -delete - find . -name "*.link" -delete - find . -name "*.meta" -delete - find . -name "*.import.*" -delete - rm -rf libs.library-util.c - rm -rf dist - rm -rf deps + git clean -X -f diff --git a/README.md b/README.md index fba653f..e69de29 100644 --- a/README.md +++ b/README.md @@ -1,31 +0,0 @@ -
-compile-r7rs(1)             General Commands Manual             compile-r7rs(1)
-
-NAME
-       compile-r7rs - a tool to compile R6RS and R7RS Scheme programs
-
-ENVIRONMENT
-       COMPILE_R7RS  environment variable must be set to the name of the imple‐
-       mentation as specified in the support list.   **This  differs  from  the
-       SRFI** as the SRFI excepts a path.
-
-SYNOPSIS
-       compile-r7rs [-n BITS] [--bits BITS] file...  compile-r7rs
-
-DESCRIPTION
-       compile-r7rs
-
-       It  aims  to support Scheme SRFI-138 - Compiling Scheme programs to exe‐
-       cutables.
-
-CAVEATS
-       -      No support for -D flag.
-
-       -      Not all implementations support adding to  beginning  or  end  of
-              load path so -I and -A might work the same
-
-OPTIONS
-       -n, --bits=BITS Set the number of bits to modify.  Default is one bit.
-
-                                                                compile-r7rs(1)
-
\ No newline at end of file