Commit graph

107 commits

Author SHA1 Message Date
Alex Shinn
3f228ce731
Merge pull request #716 from amirouche/fix/emscripten-build
Makefile: js: fix build for emscripten 2.0.8.
2020-11-30 13:51:43 +09:00
Alex Shinn
a3afe4e804 don't change dir when generating images (issue #707) 2020-11-25 23:26:18 +09:00
Amirouche
f13c826da0 Makefile: js: fix build for emscripten 2.0.8.
$ emcc --version
emcc (Emscripten gcc/clang-like replacement) 2.0.8 (d059fd603d0b45b584f634dc2365bc9e9a6ec1dd)
2020-11-02 11:20:35 +01:00
Pietro Cerutti
f85c1a3545 Building docs depends on having the shared libraries available
This unbreaks compiling with multiple make jobs.
2020-10-14 10:06:56 +00:00
Alex Shinn
64ff69e99b include chibi.repl in images 2020-09-03 21:51:04 +09:00
Lukas Böger
a3a0e67365 Add (chibi optional) to listed library docs 2020-08-30 11:21:40 +01:00
Alex Shinn
a7a115323c s/dist-clean/dist-clean/ 2020-08-28 11:40:52 +09:00
Alex Shinn
421e357e98 no -lutil for emscripten (issue #681) 2020-08-17 10:07:52 +09:00
Arthur A. Gleckler
2e63c53a6b Fix: Install "base.scm", too. 2020-08-02 11:25:55 +09:00
Alex Shinn
b60a6a2417 refer to formal srfi docs for srfi packages 2020-07-29 15:48:22 +09:00
Alex Shinn
e70ebc4f35 forgot to install the shared lib for (scheme bytevector) (issue #673) 2020-07-29 10:27:54 +09:00
Alex Shinn
24c40099f0 adding githooks 2020-07-28 15:59:24 +09:00
Alex Shinn
23e62275df fixing scheme bytevector for 32bit arch 2020-07-28 15:09:40 +09:00
Alex Shinn
54c4b37f0e adding make-json-reader 2020-07-26 23:15:53 +09:00
Alex Shinn
0b9332ba77 suggesting closest misspelled options (issue #588) 2020-07-24 14:25:15 +09:00
Alex Shinn
8d85bfc5d2 improving docs 2020-07-24 12:53:29 +09:00
Alex Shinn
9fd9b88660 documenting (chibi diff) 2020-07-23 17:50:00 +09:00
Alex Shinn
da5827d889 generate SRFI 166 snowball 2020-07-06 10:55:49 +09:00
Alex Shinn
d511b8e31d s/VERSION/CHIBI_VERSION to avoid conflicts (issue #659) 2020-06-15 18:54:20 +09:00
Alex Shinn
abc3403e0a chibi-scheme-static needs -lutil if (chibi pty) is included 2020-06-08 11:54:12 +09:00
Alex Shinn
c245d6cee8 fix case folding, update to unicode 13 2020-06-04 22:08:07 +09:00
Alex Shinn
1164ecf9b7 adding unicode-string-width/wide 2020-06-03 10:43:22 +09:00
Alex Shinn
6caca77426 adding (scheme bytevector) 2020-05-31 23:24:51 +09:00
Lockywolf
ca23ec9335 Add srfi 146 and 166 installation to Makefile 2020-05-28 12:33:55 +08:00
Alex Shinn
62ef654817 clarifying in README that GNU make is used, movign all extensions to Makefile.detect (issue #642) 2020-05-22 15:06:45 +09:00
Donaim
ebfe494147 make: fix uninstall target
uninstall target failed to remove
- share/srfi libraries
- man pages
- include headers

This patch repairs the makefile so that all chibi files
get removed correctly.

In case of man pages, they were actually installed
to a wrong place - "man1/man1" instead of "man1".
This was introduced by 2137fcd3f0
so current commit reverts it.
2020-05-11 23:19:48 +02:00
Alex Shinn
507e62c3e1 add safety checks on substring-cursor 2020-02-06 23:09:33 +08:00
Alex Shinn
fad3413235
Merge pull request #609 from ilammy/snow-usr-local
Always install Snow libraries to /usr/local
2020-02-06 21:15:39 +08:00
Alexei Lozovsky
26061930e9 Always install Snow libraries to /usr/local
Snow-Chibi is a local package manager, not a system one. It can install
Scheme packages into system but they are not managed by system package
manager like dpkg, RPM, pacman, ports, etc.

Traditionally (and in accordance with Filesystem Hierarchy Standard),
/usr/local hierarchy should be used for local administrator installs --
and that's what Snow-Chibi provides.

Let's make sure that Snow-Chibi installs snowballs into /usr/local
hierarchy even if Chibi is compiled for installation into the system,
with PREFIX=/usr. Introduce a distinct bunch of variables holding paths
to library installation directories, with "SNOW" prefix:

  - SNOWPREFIX    - default prefix for Snow-installed stuff
  - SNOWLIBDIR    - custom libraries required for Snow itself
  - SNOWSOLIBDIR  - shared libraries required for Snow itself
  - SNOWMODDIR    - Snow installs Scheme modules here
  - SNOWBINMODDIR - Snow installs native libraries here

All of these are set to /use/local by default, just as they are now.
However, they are not affected by regular PREFIX, LIBDIR, MODDIR, etc.
which affect only libraries bundled with Chibi.

And in order for these to work, they need to be added into the current
module path so that they can be used in parallel with system libraries.
Furthermore, we need to tweak "get-install-library-dir" function to use
those paths instead of hardcoded "/usr/local/lib" by default. Introduce
a new helper "get-install-library-dirs", similar to "get-install-dirs".
It will look up the correct installation directories in current module
path, giving preference to the ones with "/lib" in them.

With these defaults, Snow will install Scheme modules into
/usr/local/share/snow and native libraries go into /usr/local/lib/snow,
similar to how built-it libraries are installed into
/usr/local/share/chibi and /usr/local/lib/chibi is used for native code.
Of course, this can be overriden at build time by setting SNOWPREFIX or
individual SNOWMODDIR, SNOWBINMODDIR variables.
2020-02-02 16:21:21 +02:00
Alexei Lozovsky
2137fcd3f0 Correct man page installation directory
According to the Filesystem Hierarchy Standard (see "man 7 hier")
man pages should be installed into an appropriate subdirectory for
their section. Fix the installation path so that our documentation
goes into the right place.

All UNIX-like systems supported by Chibi follow FHS for man pages:

  - FreeBSD
  - GNU/Linux
  - macOS
  - Plan 9
2020-02-02 11:34:24 +02:00
Alex Shinn
82654b4c46 make install shouldn't fail if there are issues with images (fixes issue #603) 2020-01-12 22:43:36 +08:00
Amirouche
9604fa361b Makefile: js/chibi.js: ALLOW_MEMORY_GROWTH=1
`ALLOW_MEMORY_GROWTH=1` allows to grow the wasm vm memory space as
needed and avoid out-of-memory issues. This is for development
purpose, production build will want to set memory size to something
that is fit the application (I don't remember the actual option name,
but removing ALLOW_MEMORY_GROWTH=1 from the compilation, and
re-running the app will display the good option to use).
2019-10-28 12:21:37 +01:00
Amirouche
61684647d6 Makefile: js/chibi.js: disable optimization
Optimizations will (sometime) lead to broken build.
2019-10-28 12:19:37 +01:00
Amirouche
9acd71735c Makefile: whitespace cleanup 2019-10-28 12:18:09 +01:00
Alex Shinn
a9cebfb8da adding wip json parser 2019-08-23 00:45:58 +08:00
Alex Shinn
8ea1852ac1 adding (chibi pty) 2019-08-19 23:03:09 +08:00
Richard Lowe
2311e41003 build on Solaris-like systems 2019-08-11 22:30:17 +00:00
Ondřej Majerech
f08a6503b2 Create $prefix/lib/chibi/srfi/160 when installing
Otherwise, the Makefile installs lib/srfi/160/base.sld as
$prefix/lib/chici/srfi/160 instead of installing it into that directory.
2019-01-20 20:32:25 +01:00
anergy
cfcc0b021f typo in Makefile 2019-01-17 22:06:16 +09:00
Alex Shinn
d24d75621d fixing nofeature build 2019-01-16 08:33:04 +08:00
Alex Shinn
8c0c57ae6c typo in Makefile 2019-01-16 07:13:27 +08:00
Alex Shinn
2b4394ea74 adding initial support for SRFI 160 uniform vectors 2019-01-15 23:43:50 +08:00
Alex Shinn
1b3ccdaf1c fixing link to http-server docs 2019-01-06 08:52:11 +08:00
Alex Shinn
9af77c9b4f adding CHIBI_IGNORE_SYSTEM_PATH=1 env var (fixes issue #501) 2018-12-06 00:54:21 +08:00
Alex Shinn
3c4d839c71
Merge pull request #498 from amirouche/emsdk-update
Emsdk update
2018-11-27 23:12:09 +08:00
Alex Shinn
5bbef040c5 BSD portability fixes from Taylor Campbell 2018-11-27 23:01:23 +08:00
Amirouche
80dea6ce19 Makefile: export 'cwrap' and 'ccall' from emscripten 2018-11-25 19:12:05 +01:00
John Croisant
3c41f9d3e2 Add "test-division" Makefile target.
Runs tests/division-tests.scm. The "test-all" target now also runs
test-division.
2018-03-15 21:43:21 -05:00
Alex Shinn
13a8c50373 install (srfi 135 kernel8) 2018-01-25 11:40:53 +09:00
Alex Shinn
1a2c504c5f typo, make cleaner should remove versioned so's 2018-01-25 01:27:18 +09:00