forked from alex-eg/sex
Compare commits
3 Commits
ca71ae6e91
...
63801b47b2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
63801b47b2 | ||
|
|
82d9402857 | ||
|
|
22936e68e3 |
17
Makefile
17
Makefile
@@ -14,6 +14,15 @@ CSC_FLAGS += -K prefix -static
|
|||||||
# error.
|
# error.
|
||||||
# -c: Stop after compilation to object files. This one is obvious.
|
# -c: Stop after compilation to object files. This one is obvious.
|
||||||
|
|
||||||
|
# GNU directory variables. Command line overrides, e.g.
|
||||||
|
# make prefix=$(HOME)/.local install
|
||||||
|
# make DESTDIR=/tmp/stage prefix=/usr install
|
||||||
|
prefix = /usr/local
|
||||||
|
exec_prefix = $(prefix)
|
||||||
|
bindir = $(exec_prefix)/bin
|
||||||
|
INSTALL = install
|
||||||
|
INSTALL_PROGRAM = $(INSTALL)
|
||||||
|
|
||||||
MODULE_FLAGS = -emit-all-import-libraries -module-registration -c
|
MODULE_FLAGS = -emit-all-import-libraries -module-registration -c
|
||||||
|
|
||||||
# Order matters, since module check correctness on compilation
|
# Order matters, since module check correctness on compilation
|
||||||
@@ -129,6 +138,12 @@ clean:
|
|||||||
rm -f *.import.scm
|
rm -f *.import.scm
|
||||||
rm -f *.link
|
rm -f *.link
|
||||||
rm -f sexc sex-tests sextest
|
rm -f sexc sex-tests sextest
|
||||||
|
$(MAKE) -C ./tests clean
|
||||||
$(MAKE) -C ./tests/modules clean
|
$(MAKE) -C ./tests/modules clean
|
||||||
|
$(MAKE) -C ./tools/sextest clean
|
||||||
|
|
||||||
.PHONY: clean depclean deps run-tests sex-tests sextest check-modules check-exit-code
|
deps-clean:
|
||||||
|
rm -rf $(EGGS_DIR)
|
||||||
|
|
||||||
|
.PHONY: all check run-tests check-modules check-exit-code install install-strip installdirs
|
||||||
|
uninstall deps deps-update clean depsclean sex-tests sextest
|
||||||
|
|||||||
29
Readme.org
29
Readme.org
@@ -12,19 +12,22 @@ Sex is statically typed, compiled general purpose language.
|
|||||||
First, get yourself a Chicken, then, some Chicken deps. You also will
|
First, get yourself a Chicken, then, some Chicken deps. You also will
|
||||||
need a C compiler.
|
need a C compiler.
|
||||||
|
|
||||||
** Install Chicken Eggs
|
Eggs are installed into a project-local ~.eggs/~ repository; they do not
|
||||||
Tip: there's a way to make Chicken install eggs non-globally. You need
|
touch the Chicken system repository.
|
||||||
to export ~CHICKEN_INSTALL_REPOSITORY~ and ~CHICKEN_REPOSITORY_PATH~
|
|
||||||
environment variables. Refer to the documentation for more info:
|
|
||||||
https://wiki.call-cc.org/man/5/Extension%20tools#changing-the-repository-location
|
|
||||||
|
|
||||||
~chicken-install `cat dependencies.txt`~
|
|
||||||
|
|
||||||
** Compilation
|
** Compilation
|
||||||
#+begin_src sh
|
#+begin_src sh
|
||||||
make
|
make
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
That installs pinned eggs from ~eggs.lock~ into ~.eggs/~ if needed, then
|
||||||
|
builds ~sexc~. ~dependencies.txt~ is the unpinned request list. To
|
||||||
|
refresh ~eggs.lock~ after changing it:
|
||||||
|
|
||||||
|
#+begin_src sh
|
||||||
|
make deps-update
|
||||||
|
#+end_src
|
||||||
|
|
||||||
** Static compilation
|
** Static compilation
|
||||||
The default ~CSC_FLAGS~ include ~-static~, so ~sexc~ does not need
|
The default ~CSC_FLAGS~ include ~-static~, so ~sexc~ does not need
|
||||||
~.eggs~ at runtime and ~make install~ stays relocatable. Chicken must
|
~.eggs~ at runtime and ~make install~ stays relocatable. Chicken must
|
||||||
@@ -38,6 +41,18 @@ tree's ~.eggs~ path):
|
|||||||
make CSC_FLAGS='-K prefix'
|
make CSC_FLAGS='-K prefix'
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
** Installation
|
||||||
|
GNU directory variables: ~prefix~, ~exec_prefix~, ~bindir~, ~DESTDIR~.
|
||||||
|
|
||||||
|
#+begin_src sh
|
||||||
|
# default installation (/usr/local/bin/)
|
||||||
|
make install
|
||||||
|
# customize the prefix (installs to ~/.local/bin)
|
||||||
|
make prefix=$(HOME)/.local install
|
||||||
|
# staged install for packaging
|
||||||
|
make DESTDIR=/tmp/stage prefix=/usr install
|
||||||
|
#+end_src
|
||||||
|
|
||||||
* Usage
|
* Usage
|
||||||
** Summary
|
** Summary
|
||||||
#+begin_src
|
#+begin_src
|
||||||
|
|||||||
8
eggs.lock
Normal file
8
eggs.lock
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
(brev-separate "1.100")
|
||||||
|
(fmt "0.8.14")
|
||||||
|
(getopt-long "4.0")
|
||||||
|
(matchable "1.2")
|
||||||
|
(srfi-1 "0.5.1")
|
||||||
|
(srfi-13 "0.3.8")
|
||||||
|
(srfi-69 "0.5.3")
|
||||||
|
(test "1.3")
|
||||||
@@ -46,3 +46,5 @@ clean:
|
|||||||
rm -f *.import.scm
|
rm -f *.import.scm
|
||||||
rm -f *.link
|
rm -f *.link
|
||||||
rm -f sex-tests
|
rm -f sex-tests
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
|||||||
Reference in New Issue
Block a user