repotool/Makefile

23 lines
477 B
Makefile
Raw Permalink Normal View History

2024-05-02 00:43:43 +00:00
.PHONY: all install
2024-05-01 23:12:04 +00:00
SOURCES_LIBS:=$(shell find lib -type f)
SOURCES_SRC:=$(shell find src -type f )
2024-05-02 00:52:15 +00:00
REPOTOOL_PATH ?= ${HOME}/repo
2024-05-01 23:12:04 +00:00
2024-05-05 22:03:57 +00:00
all: dist/repotool
install: dist/repotool repotool.zsh repotool.plugin.zsh
2024-05-02 00:52:15 +00:00
mkdir -p ${REPOTOOL_PATH}/.bin/
install repotool repotool.zsh repotool.plugin.zsh ${REPOTOOL_PATH}/.bin/
2024-05-02 00:43:43 +00:00
2024-05-01 23:12:04 +00:00
src/lib/repotool/stdlib.sh: $(SOURCES_LIBS)
bashly add --source . stdlib -f
2024-05-05 22:03:57 +00:00
dist/repotool: $(SOURCES_SRC)
mkdir -p dist
2024-05-01 23:12:04 +00:00
bashly generate
2024-05-05 22:03:57 +00:00
mv repotool dist
2024-05-01 23:12:04 +00:00