autostart-manage/Makefile
2024-01-08 23:37:31 +01:00

20 lines
472 B
Makefile

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/