wellnessgame/d66/justfile

26 lines
613 B
Plaintext

# show all recipes
default:
just --list --unsorted
# make text
@txt:
[ wellness-d66.t -nt wellness-d66.html ] \
&& nroff -ms wellness-d66.t > wellness-d66.txt \
|| echo "Nothing to be done"
# make html
@html:
[ wellness-d66.t -nt wellness-d66.html ] \
&& groff -ms -Thtml wellness-d66.t \
| gsed '/style type/a body { max-width: 80ch; margin-inline: auto; }' \
> wellness-d66.html \
|| echo "Nothing to be done"
# make pdf
@pdf:
[ wellness-d66.t -nt wellness-d66.pdf ] \
&& cat wellness-d66.t | groff -ms -Tpdf > wellness-d66.pdf \
|| echo "Nothing to be done"
build: txt html pdf