autostart-manage/Makefile

21 lines
472 B
Makefile
Raw Normal View History

2024-01-08 22:37:31 +00:00
target:
@echo "Enter target directory:"
@read target; \
echo $$target > .target
get-target:
$(eval TARGET := $(shell cat .target))
output-dir:
mkdir -p ./output
generate: get-target output-dir
BASHLY_SOURCE_DIR=$(TARGET) bashly generate
completions: generate
BASHLY_SOURCE_DIR=$(TARGET) bashly add --force completions_script ./output/_$(TARGET)
deploy: completions
cp -f ./output/$(TARGET) ~/.local/bin/
cp -f ./output/_$(TARGET) ~/.config/completionsrc.d/