-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 912 Bytes
/
Makefile
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
###############################################################################
MK_INFO := https://pypi.org/project/vmklib
ifeq (,$(shell which mk))
$(warning "No 'mk' in $(PATH), install 'vmklib' with 'pip' ($(MK_INFO))")
endif
ifndef MK_AUTO
$(error target this Makefile with 'mk', not '$(MAKE)' ($(MK_INFO)))
endif
###############################################################################
.PHONY: edit generate test clean-output clean yaml
edit: $(PY_PREFIX)edit
generate: | $(VENV_CONC)
$(PYTHON_BIN)/cookiecutter \
-o $($(PROJ)_DIR)/.. \
$($(PROJ)_DIR)
COMMON_ARGS := -o $($(PROJ)_DIR) $($(PROJ)_DIR)
test: clean-output | $(VENV_CONC)
$(PYTHON_BIN)/cookiecutter \
--no-input \
$(COMMON_ARGS)
OUTPUT := package-name
clean-output:
rm -rf $($(PROJ)_DIR)/$(OUTPUT)
clean: clean-output $(DZ_PREFIX)clean $(PY_PREFIX)clean
yaml: $(YAML_PREFIX)lint-local $(YAML_PREFIX)lint-manifest.yaml