-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
executable file
·39 lines (30 loc) · 1.11 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
# Copyright 2018-2021 ECOLE POLYTECHNIQUE FEDERALE DE LAUSANNE,
# Miniature Mobile Robots group, Switzerland
# Author: Yves Piguet
# Licensed under the 3-Clause BSD License;
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# https://opensource.org/licenses/BSD-3-Clause
.PHONY: main
main: all
include Makefile-jsmin
.PHONY: all
all: \
vpl-min.js thymio/thymio.js \
index-svg.html index-svg-min.html index-classic.html index-classic-min.html
# dependencies
index-classic.html: $(shell python3 inlinersrctool.py --input=index-classic-min-template.html --dep)
index-svg.html: $(shell python3 inlinersrctool.py --input=index-svg-min-template.html --dep)
index-classic-min.html: $(shell python3 inlinersrctool.py --input=index-classic-min-template.html --dep)
index-svg-min.html: $(shell python3 inlinersrctool.py --input=index-svg-min-template.html --dep)
%.html: %-template.html
python3 inlinersrctool.py --input=$< >$@
thymio/thymio.js: submodules/tdm-js/thymio/thymio.js
mkdir -p thymio
cp $< $@
.PHONY: doc
doc: $(JS)
jsdoc -d=doc-js $^
.PHONY: oh
oh:
ohcount src