1
0
Fork 0
mirror of https://github.com/Reuh/ubiquitousse.git synced 2025-10-27 17:19:31 +00:00

Add make script and precompile Candran files

This commit is contained in:
Étienne Fildadut 2021-12-27 17:22:50 +01:00
parent bfa73f6dd0
commit bfbe236e58
18 changed files with 1307 additions and 80 deletions

36
make Executable file
View file

@ -0,0 +1,36 @@
#!/bin/sh
set -e
script="$(realpath $0)"
dir="$(dirname $0)"
cd "$dir"
case "$1" in
can)
canc $(find . -type f -iname '*.can')
;;
docs)
ldoc .
;;
clean)
rm -rf docs
for f in $(find . -type f -iname '*.can'); do
rm -f "${f%.can}.lua"
done
;;
all)
$script docs
$script can
;;
*)
echo "make all: build everything"
echo "make can: build Candran files into Lua files"
echo "make docs: build HTML documentation in docs/"
echo "make clean: remove built documentation & Lua files"
;;
esac