-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (25 loc) · 1.14 KB
/
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
35
36
# put names of targets here that aren't real file outputs (not essential, but
# idiomatically correct)
.PHONY: all clean edit lint yaml
# set this to control what target is resolved by only invoking 'make'
.DEFAULT_GOAL := all
# use this if you want to support standard 'make' invocation
ifndef MK_AUTO
# set this to the name of your project, so it can be substituted in wherever
# necessary
PROJ := vmklib
# root directory of your project, can use "." or $(shell pwd) but the below
# assignment will guarantee that it's assigned to the directory that this
# file is in (the Makefile targeted by make)
$(PROJ)_DIR := $(patsubst %/,%,$(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
# include target-containing files, if you sub-module this repository the paths
# may need to change, include 'functions.mk' first so other includes can use
# common functions
include $($(PROJ)_DIR)/vmklib/data/conf.mk
endif
all: $(PY_PREFIX)lint $(PY_PREFIX)sa $(PY_PREFIX)test lint
edit: $(PY_PREFIX)edit
clean: $(PY_PREFIX)clean venv-clean
@rm -rf $(BUILD_DIR) $($(PROJ)_DIR)/tags
lint: $(YAML_PREFIX)lint-local $(YAML_PREFIX)lint-manifest.yaml
yaml: lint