~octaspire/crates2

ref: ee57a2c1b0784fac1c080f5e6fef5344204418a0 crates2/Makefile -rw-r--r-- 1.6 KiB
ee57a2c1octaspire Add autoplay, level and :back input, fix timers in test mode 6 months ago
                                                                                
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
# Octaspire Crates 2 - Puzzle Game
# Copyright 2020 octaspire.com
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
LISP  ?= sbcl
EVAL  ?= "--eval"
LOAD  ?= "--load
level ?= 0

.PHONY: slime clean help test

crates2: Makefile crates2.asd src/*.lisp
	@$(LISP) $(EVAL) '(ql:quickload :crates2)' \
                 $(EVAL) '(asdf:make :crates2)'    \
                 $(EVAL) '(quit)'

slime:
	@etc/slime.sh &

run: crates2
	@etc/run.sh

play: crates2
	@etc/autoplay.sh $(level)

install: crates2
	@etc/install.sh

clean:
	@rm -f crates2 expected.txt.bz2 expected.txt got.txt

test: crates2
	@etc/test.sh

help:
	@echo 'Usage:'
	@echo '  make <target>'
	@echo ''
	@echo 'Targets:'
	@echo '  crates2  build standalone binary executable for crates2 (default target)'
	@echo '  run      build standalone binary and run it'
	@echo '  play     build standalone binary and autoplay it from given level'
	@echo '  install  build standalone binary and install it'
	@echo '  slime    start Emacs/slime (if needed) with crates2 loaded'
	@echo '  clean    remove build artifacts'
	@echo '  test     build and do a play test'
	@echo '  help     show this help'