tools/Makefile

23 lines
594 B
Makefile
Raw Normal View History

2024-01-08 22:37:31 +00:00
target:
2024-01-11 22:31:41 +00:00
@echo "Select target directory"
@echo $$(find . -name bashly.yml | sed -e 's/.\///' -e 's/\/.*//' | $$DMENU) > .target
2024-01-08 22:37:31 +00:00
get-target:
$(eval TARGET := $(shell cat .target))
output-dir:
mkdir -p ./output
2024-01-12 01:48:39 +00:00
completions: get-target
BASHLY_SOURCE_DIR=$(TARGET) bashly add completions
2024-01-11 22:31:41 +00:00
2024-01-12 01:48:39 +00:00
generate: get-target output-dir completions
2024-01-11 22:31:41 +00:00
BASHLY_SOURCE_DIR=$(TARGET) bashly generate --upgrade
docs: generate
BASHLY_SOURCE_DIR=$(TARGET) bashly render :mandoc ./output/man1
2024-01-12 01:28:44 +00:00
deploy: generate docs
2024-01-08 22:37:31 +00:00
cp -f ./output/$(TARGET) ~/.local/bin/
2024-01-11 22:31:41 +00:00
cp -f ./output/man1/$(TARGET)*.1 ~/.local/share/man/man1/