forked from tangentstorm/retro
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
66 lines (49 loc) · 1.31 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# makefile for building retro image and some vm implementations
CFLAGS = -Wall
all: clean retro
retro:
$(CC) $(CFLAGS) vm/complete/retro.c -o retro
python:
cp vm/complete/retro.py retro
chmod +x retro
ruby:
cp vm/complete/retro.rb retro
chmod +x retro
sbcl:
( cd vm/complete/lisp && sbcl --no-sysinit --no-userinit --noprint --load sbcl.lisp )
.PHONY: image
image: retro
cd image && cat meta.rx kernel.rx >../core.rx
./retro --shrink --image retroImage --with core.rx
rm core.rx
helpful: image
./retro --image retroImage --with image/helpful.rx
docstrings:
cp retroImage helpImage
./retro --image helpImage --with tools/exportDocstrings.rx
./retro --image helpImage >doc/Function_List.md
rm helpImage
jsimage:
./retro --with vm/web/html5/dumpImage.rx
cp retroImage.js vm/web/android-phonegap/assets/www
mv retroImage.js vm/web/html5
images:
$(CC) $(CFLAGS) tools/convert.c -o convert
./convert
rm -f convert
clean:
rm -f retro
rm -f retroImage16 retroImage64
rm -f retroImage16BE retroImageBE retroImage64BE
rm -f *~
cleaner:
rm -f `find . | grep \~`
webdocs:
sh tools/exportHTML.sh doc
mv doc/*.html www/docs
sh tools/exportHTML.sh doc/library
mv doc/library/*.html www/docs/library
libdocs:
sh tools/extractDocs.sh library
mv library/*.rst doc/library
cat doc/library/*.rst >doc/Libraries.rst