-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (35 loc) · 899 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (35 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export PY_COLORS = 1
export PYTHONIOENCODING = UTF-8
export LC_CTYPE = en_US.UTF-8
export LANG = en_US.UTF-8
INSTALL_POETRY ?= true
POETRY_BIN ?= poetry
POETRY_RUNNER ?= poetry run
CM_BIN ?= chezmoi
CM_REPOSITORY ?= https://github.com/lotyp/dotfiles.git
install-chezmoi:
# @todo
# https://github.com/chezmoi/dotfiles/blob/master/install.sh
@echo "Installing chezmoi..."
bash ./scripts/install_chezmoi.sh | tee -a $(LOGFILE) || exit 1
.PHONY: install-chezmoi
install-deps:
$(POETRY_BIN) install
.PHONY: install-deps
install-poetry:
ifeq ($(INSTALL_POETRY),true)
sudo sh contrib/poetry-bin/install.sh
else
@echo "Poetry installation disabled by global variable! Exiting..."
@exit 0
endif
.PHONY: install-poetry
# Init chezmoi
init:
$(CM_BIN) init $(CM_REPOSITORY) -v
.PHONY: init
### Git
hooks:
$(POETRY_RUNNER) pre-commit install
$(POETRY_RUNNER) pre-commit autoupdate
.PHONY: hooks