Skip to content

Commit

Permalink
s
Browse files Browse the repository at this point in the history
  • Loading branch information
fauust committed Apr 28, 2024
1 parent 4615b45 commit fa89f0b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
VENV_DIR := .venv
VENDOR_DIR := .vendor
.DEFAULT_GOAL := help
.SHELLFLAGS := -eu -o pipefail -c
.SHELLFLAGS := -eu -c
PATH := $(VENV_DIR)/bin:$(PATH)
WWW_PKGS := www/base www/console_view www/grid_view www/waterfall_view www/wsgi_dashboards www/badges
WWW_DEP_PKGS := www/guanlecoja-ui www/data_module
Expand All @@ -20,7 +20,9 @@ install: ## Install all necessary tools

venv: ## Create python3 venv if it does not exists
$(info --> Create python virtual env ($(VENV_DIR)))
[[ -d $(VENV_DIR) ]] || $(shell command -v python3) -m venv $(VENV_DIR)
if [[ ! -d $(VENV_DIR) ]]; then
uv venv $(VENV_DIR)
fi
@echo -e "\n--> You should now activate the python3 venv with:"
@echo -e "source $(VENV_DIR)/bin/activate\n"

Expand Down Expand Up @@ -57,5 +59,9 @@ checkconfig: ## Validate master.cfg files
./validate_master_cfg.sh

clean: ## Clean venv
[[ ! -d $(VENV_DIR) ]] || rm -rf $(VENV_DIR)
[[ ! -d $(VENDOR_DIR) ]] || rm -rf $(VENDOR_DIR)
if [[ -d $(VENV_DIR) ]]; then
rm -rf $(VENV_DIR)
fi
if [[ -d $(VENDOR_DIR) ]]; then
rm -rf $(VENDOR_DIR)
fi

0 comments on commit fa89f0b

Please sign in to comment.