38 lines
917 B
Makefile
38 lines
917 B
Makefile
build_dir_name := ".build"
|
|
|
|
[private]
|
|
default:
|
|
just --list
|
|
|
|
# Builds and fills the templates into the .build directory.
|
|
[group('build')]
|
|
build:
|
|
@gum spin --title="Building project..." -- bash -xc "hpa build &>/dev/null"
|
|
|
|
# Build & generate an HTML report.
|
|
[group("generate")]
|
|
html:
|
|
@gum spin --title="Generating html..." -- bash -xc "hpa generate html &>/dev/null"
|
|
@xdg-open Report.html &
|
|
|
|
# Build & generate a PDF report.
|
|
[group("generate")]
|
|
pdf:
|
|
@gum spin --title="Generating pdf..." -- bash -xc "hpa generate pdf &>/dev/null"
|
|
@xdg-open Report.pdf &
|
|
|
|
# Build & generate a Latex file.
|
|
[group("generate")]
|
|
[group("debug")]
|
|
latex:
|
|
@gum spin --title="Generating latex..." -- baxh -xc "hpa generate latex &>/dev/null"
|
|
@xdg-open Report.tex &
|
|
|
|
[group('utilities')]
|
|
edit-vault:
|
|
@hpa ansible-vault edit --vault-password /run/secrets/vault-pass vault.yml
|
|
|
|
[group('utilities')]
|
|
clean:
|
|
@rm -rf {{build_dir_name}}
|