Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
60 lines (47 loc) · 1.59 KB
/
Copy pathMakefile
File metadata and controls
60 lines (47 loc) · 1.59 KB
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
.POSIX:
SCHEME=chibi
LIBRARY=tap
DOCKER_TAG=latest
library_file=retropikzel/${LIBRARY}.sld
testfile=retropikzel/${LIBRARY}/test.scm
splitclean=awk -F ':' '{print($$2)}' | tr -d ' '
version=$$(grep "Version:" ${library_file} | ${splitclean})
license=$$(grep "SPDX-License-Identifier:" ${library_file} | awk -F ":" "{print(\$$2)}" | tr -d ' ')
description=$$(grep "Description:" ${library_file} | awk -F ':' '{print($$2)}' | tr -d ' ')
additional_libraries=$$(grep "Additional Libraries:" ${library_file} | awk -F ':' '{print($$2)}' || echo "")
pkg=retropikzel-${LIBRARY}-${version}.tgz
debug:
echo "${license}"
all: package
package:
snow-chibi package \
--always-yes \
--version="${version}" \
--authors=Retropikzel \
--maintainers=Retropikzel \
--license="${license}" \
--doc-from-scribble=1 \
--test=${testfile} \
--description="${description}" \
${library_file} ${additional_libraries}
git-index:
snow-chibi git-index ${pkg}
install:
snow-chibi install --impls=${SCHEME} --always-yes --verbose?=1 --skip-tests?=1 ${pkg}
test: package
snow-chibi --impls=${SCHEME} test-package ${pkg}
test-compile-r7rs:
COMPILE_R7RS=${SCHEME} compile-r7rs -o test-program ${testfile}
./test-program
test-docker:
DOCKER_TAG=${DOCKER_TAG} \
SNOW_PACKAGES="retropikzel.tap ${pkg}" \
COMPILE_R7RS=${SCHEME} \
test-r7rs -o test-program ${testfile}
retropikzel/wasm/plus.wat: retropikzel/wasm/plus.c
emcc -o retropikzel/wasm/plus.js retropikzel/wasm/plus.c
wasm-dis retropikzel/wasm/plus.wasm > retropikzel/wasm/plus.wat
jenkinsfile: makings.scm
makings --jenkinsfile > Jenkinsfile
clean:
git clean -X -f