-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
31 lines (22 loc) · 825 Bytes
/
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
# Generate smaller (uncommented and/or tokenized) versions from the
# original BASIC source code (M100LE+comments.DO).
# Uncommenting uses two scripts in the adjunct dir:
# jumpdestinations and removecomments.
# Tokenizing requires hackerb9's tandy-tokenize program.
# See https://github.com/hackerb9/tandy-tokenize
generated+=M100LE+comments.BA M100LE.DO M100LE.BA
generated+=CMPRSS.BA
# By default, generate every file using the implicit rules
all: ${generated}
# Delete all generated files
clean:
rm ${generated} 2>/dev/null || true
# Commit blobs
commit: all
git commit ${generated} -m "Blob regenerated by Makefile"
# Automatically convert M100LE+comments.DO -> M100LE.DO
%.DO: %+comments.DO
adjunct/removecomments $< $@
# Automatically convert M100LE.DO -> M100LE.BA
%.BA: %.DO
tandy-tokenize < $< > $@