This repository was archived by the owner on Feb 27, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathMakefile
More file actions
100 lines (72 loc) · 2.95 KB
/
Copy pathMakefile
File metadata and controls
100 lines (72 loc) · 2.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Makefile for Clearwater infrastructure packages
# this should come first so make does the right thing by default
.PHONY: all
all: build
ROOT ?= ${PWD}
PYZMQ_DIR := ${PWD}/clearwater-infrastructure/PyZMQ
SRC_DIR := ${PWD}/src
CW_SOCK_FACT_DIR := ${PWD}/clearwater-socket-factory
SETUPTOOLS_VERSION=30
ENV_DIR := $(shell pwd)/_env
ENV_PYTHON := ${ENV_DIR}/bin/python
ENV_PIP := ${ENV_DIR}/bin/pip
PYTHON_BIN := $(shell which python)
PKG_COMPONENT := clearwater-infrastructure
PKG_MAJOR_VERSION ?= 1.0
PKG_NAMES := clearwater-infrastructure clearwater-memcached clearwater-secure-connections clearwater-tcp-scalability clearwater-snmpd clearwater-diags-monitor clearwater-auto-config-aws clearwater-auto-config-docker clearwater-auto-config-generic clearwater-log-cleanup clearwater-auto-upgrade clearwater-socket-factory clearwater-radius-auth vellum vellum-dbg dime dime-dbg
# Override the list of PKG_NAMES for RPM to exclude clearwater-memcached.
# We don't yet have a build of that.
RPM_NAMES := $(subst clearwater-memcached,,$(PKG_NAMES))
# Also exclude vellum and dime
RPM_NAMES := $(subst vellum-dbg,,$(RPM_NAMES))
RPM_NAMES := $(subst vellum,,$(RPM_NAMES))
RPM_NAMES := $(subst dime-dbg,,$(RPM_NAMES))
RPM_NAMES := $(subst dime,,$(RPM_NAMES))
.PHONY: build clean analysis test verify style
build: pyzmq_build clearwater_infrastructure_build clearwater_socket_factory_build cw_infrastructure
clean: pyzmq_clean clearwater_infrastructure_clean clearwater_socket_factory_clean cw_infrastructure_clean
analysis: cw_infrastructure_analysis
test: cw_infrastructure_test
verify: cw_infrastructure_verify
style: cw_infrastructure_style
.PHONY: pyzmq_build
pyzmq_build:
make -C ${PYZMQ_DIR}
.PHONY: pyzmq_clean
pyzmq_clean:
make -C ${PYZMQ_DIR} clean
.PHONY: clearwater_infrastructure_build
clearwater_infrastructure_build:
make -C ${SRC_DIR}
.PHONY: clearwater_infrastructure_clean
clearwater_infrastructure_clean:
make -C ${SRC_DIR} clean
ENV_DIR := $(shell pwd)/_env
BANDIT_EXCLUDE_LIST = _env,modules/,debian,clearwater-infrastructure/PyZMQ/_env,clearwater-infrastructure/PyZMQ/eggs
TEST_SETUP_PY :=
include build-infra/python.mk
.PHONY: clearwater_socket_factory_build
clearwater_socket_factory_build:
make -C ${CW_SOCK_FACT_DIR}
.PHONY: clearwater_socket_factory_clean
clearwater_socket_factory_clean:
make -C ${CW_SOCK_FACT_DIR} clean
include build-infra/cw-deb.mk
.PHONY: deb
deb: build deb-only
include build-infra/cw-rpm.mk
.PHONY: rpm
rpm: build rpm-only
.PHONY: cw_infrastructure cw_infrastructure_test cw_infrastructure_verify cw_infrastructure_style cw_infrastructure_clean cwc_management_analysis
cw_infrastructure:
${MAKE} -C cw_infrastructure wheelhouses
cw_infrastructure_test:
${MAKE} -C cw_infrastructure test
cw_infrastructure_verify:
${MAKE} -C cw_infrastructure verify
cw_infrastructure_style:
${MAKE} -C cw_infrastructure style
cw_infrastructure_clean:
${MAKE} -C cw_infrastructure clean
cw_infrastructure_analysis:
${MAKE} -C cw_infrastructure analysis