27 lines
568 B
Makefile
27 lines
568 B
Makefile
# List available actions
|
|
help:
|
|
@just -l
|
|
|
|
# Do a debug build
|
|
debug:
|
|
make -j$(nproc)
|
|
|
|
# Do a release build
|
|
release:
|
|
make -j$(nproc) RELEASE=1
|
|
|
|
# Watch and recompile on changes
|
|
watch:
|
|
watchexec -e c,cc,cpp,h,hpp -- make -j$(nproc)
|
|
|
|
# Produce a release PDF from readme
|
|
readme:
|
|
@# Requires pandoc pdflatex texlive-collection-fontsrecommended
|
|
pandoc --from=gfm --to=pdf -o README.pdf README.md
|
|
|
|
readme-podman:
|
|
podman run --rm --volume .:/data:Z docker.io/pandoc/latex --from=gfm --to=pdf README.md -o README.pdf
|
|
|
|
# Clean up
|
|
clean:
|
|
make clean
|