-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
61 lines (45 loc) · 1.95 KB
/
Makefile
File metadata and controls
61 lines (45 loc) · 1.95 KB
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
################################################################################
# Copied from build-tools git.mk reference implementation.
# https://github.com/ajay/build-tools/blob/main/makefiles/git.mk
# Keep in sync with the reference when updating.
REPO_ROOT := $(shell git rev-parse --show-toplevel)
git-submodule-update:
@## initialize and update git submodules
git pull
git submodule sync --recursive
git submodule update --init --recursive
ifneq ($(filter git-submodule-update install,$(MAKECMDGOALS)),)
else ifneq (,$(shell git submodule status --recursive 2>/dev/null | grep '^[-+]'))
$(error ERROR: git submodules not initialized or out of date; run `make git-submodule-update`)
endif
################################################################################
-include $(REPO_ROOT)/tools/build-tools/makefiles.mk
################################################################################
DEPS += python3
GIT_SUBMODULE_STALE_CHECK_EXCLUDE := pyyaml
DOTBOT_BIN := dotbot/dotbot/bin/dotbot
DOTBOT_CONFIG := dotbot.conf.yaml
DOTBOT_FLAGS_PLUGINS := \
--plugin dotbot/plugins/dotbot-directive/directive.py \
--plugin dotbot/plugins/dotbot-pip/pip.py
DOTBOT_FLAGS_EXTRA :=
ci: git-check deps-check deps-versions lint
@## run CI checks
install: git-submodule-update
@## install dotfiles
python3 -B $(DOTBOT_BIN) \
--base-directory $(CURDIR) \
--config-file $(DOTBOT_CONFIG) \
$(DOTBOT_FLAGS_PLUGINS) \
$(DOTBOT_FLAGS_EXTRA) \
-vv
install-dev:
@## install (skip dnf, chef, git, sudo)
$(MAKE) install DOTBOT_FLAGS_EXTRA="--except shell-dnf shell-meta-chef shell-git shell-sudo"
install-lite:
@## install (skip dnf, chef, sudo)
$(MAKE) install DOTBOT_FLAGS_EXTRA="--except shell-dnf shell-meta-chef shell-sudo"
install-no-chef:
@## install (skip chef)
$(MAKE) install DOTBOT_FLAGS_EXTRA="--except shell-meta-chef"
################################################################################