1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 02:27:10 +03:00
mal/logo/Makefile
Dov Murik 4eb88ef295 Logo implementation
Tested on UCBLogo 6.0 with some minor tweaks (for performance and adding
a `timems` function).  The tweaks are performed during Docker image
creation (see Dockerfile).

Tests of step 5 are skipped because UCBLogo is too slow.

Interop is available via `(logo-eval "logo code to run")`.

The `examples` directory contains a Mal example of drawing a tree using
turtle graphics.
2016-06-17 16:36:09 -04:00

29 lines
628 B
Makefile

SOURCES_BASE = readline.lg types.lg reader.lg printer.lg
SOURCES_LISP = env.lg core.lg stepA_mal.lg
SOURCES = $(SOURCES_BASE) $(SOURCES_LISP)
.PHONY: all dist clean stats stats-lisp
all:
@true
dist: mal.lg mal
mal.lg: $(SOURCES)
cat $+ | grep -v "^load " > $@
mal: mal.lg
echo "#!/usr/bin/env logo" > $@
cat $< >> $@
chmod +x $@
clean:
rm -f mal.lg mal
stats: $(SOURCES)
@wc $^
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"
stats-lisp: $(SOURCES_LISP)
@wc $^
@printf "%5s %5s %5s %s\n" `grep -E "^[[:space:]]*\"|^[[:space:]]*$$" $^ | wc` "[comments/blanks]"