repotool/Makefile

23 lines
477 B
Makefile

.PHONY: all install
SOURCES_LIBS:=$(shell find lib -type f)
SOURCES_SRC:=$(shell find src -type f )
REPOTOOL_PATH ?= ${HOME}/repo
all: dist/repotool
install: dist/repotool repotool.zsh repotool.plugin.zsh
mkdir -p ${REPOTOOL_PATH}/.bin/
install repotool repotool.zsh repotool.plugin.zsh ${REPOTOOL_PATH}/.bin/
src/lib/repotool/stdlib.sh: $(SOURCES_LIBS)
bashly add --source . stdlib -f
dist/repotool: $(SOURCES_SRC)
mkdir -p dist
bashly generate
mv repotool dist