Init
This commit is contained in:
commit
d6985ded7e
18 changed files with 348 additions and 0 deletions
20
Makefile
Normal file
20
Makefile
Normal file
|
@ -0,0 +1,20 @@
|
|||
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/
|
Loading…
Add table
Add a link
Reference in a new issue