forked from giuocob/OoT-Bingo
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (20 loc) · 702 Bytes
/
Copy pathMakefile
File metadata and controls
30 lines (20 loc) · 702 Bytes
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
# the order of these is important and should match the order of
# the <script> tags in test/bingo.html
SOURCES = example/js/seedrandom-min.js goal-list.js generator.js cli.js
SHEBANG = "\#!/usr/bin/env node"
EXECUTABLE = generator
.PHONY: all clean new itest
all: $(EXECUTABLE)
# let us run the generator from the command line by slamming together
# all of the js files and adding a node shebang at the top
$(EXECUTABLE): $(SOURCES)
echo $(SHEBANG) | cat - $(SOURCES) > $(EXECUTABLE)
chmod +x $(EXECUTABLE)
clean:
rm -f $(EXECUTABLE)
new: clean all
# integration tests that fully generate cards for given seeds
itest: all
scripts/run_tests.sh
rebuild_tests: all
scripts/rebuild_tests.sh