tools/Makefile
Tobias Reisinger 6003e52c8a
All checks were successful
/ build-artifacts (autoinstall) (push) Successful in 19s
/ build-artifacts (autostart-manage) (push) Successful in 16s
/ upload-release (push) Successful in 17s
Fix completions generation
2024-01-12 02:48:39 +01:00

23 lines
594 B
Makefile

target:
@echo "Select target directory"
@echo $$(find . -name bashly.yml | sed -e 's/.\///' -e 's/\/.*//' | $$DMENU) > .target
get-target:
$(eval TARGET := $(shell cat .target))
output-dir:
mkdir -p ./output
completions: get-target
BASHLY_SOURCE_DIR=$(TARGET) bashly add completions
generate: get-target output-dir completions
BASHLY_SOURCE_DIR=$(TARGET) bashly generate --upgrade
docs: generate
BASHLY_SOURCE_DIR=$(TARGET) bashly render :mandoc ./output/man1
deploy: generate docs
cp -f ./output/$(TARGET) ~/.local/bin/
cp -f ./output/man1/$(TARGET)*.1 ~/.local/share/man/man1/