mirror of
https://gitlab.com/kupfer/kupferbootstrap.git
synced 2025-06-25 09:58:21 -04:00
add Makefile
This commit is contained in:
parent
8adbabfb5d
commit
6188e024d7
1 changed files with 23 additions and 0 deletions
23
Makefile
Normal file
23
Makefile
Normal file
|
@ -0,0 +1,23 @@
|
|||
VENV := venv
|
||||
KUPFERBOOTSTRAP := $(VENV)/bin/kupferbootstrap
|
||||
PYTHON := python3
|
||||
INSTALL_BINARY_NAME := kupferbootstrap
|
||||
INSTALL_TARGET := ${HOME}/.local/bin/$(INSTALL_BINARY_NAME)
|
||||
|
||||
.PHONY: KBS_HELP install
|
||||
DEFAULT: KBS_HELP
|
||||
|
||||
$(VENV)/bin/pip3:
|
||||
$(PYTHON) -m venv $(VENV)
|
||||
|
||||
$(KUPFERBOOTSTRAP): $(VENV)/bin/pip3 pyproject.toml requirements.txt
|
||||
$(VENV)/bin/pip3 install -r requirements.txt
|
||||
|
||||
KBS_HELP: $(KUPFERBOOTSTRAP)
|
||||
$(KUPFERBOOTSTRAP) --help
|
||||
|
||||
install: $(INSTALL_TARGET)
|
||||
|
||||
$(INSTALL_TARGET): $(KUPFERBOOTSTRAP)
|
||||
mkdir -p "$$(dirname "$(INSTALL_TARGET)")"
|
||||
ln -srvf "$(KUPFERBOOTSTRAP)" "$(INSTALL_TARGET)"
|
Loading…
Add table
Add a link
Reference in a new issue