-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
22 lines (16 loc) · 1.01 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
SHELL := /bin/bash
DIRS := testpmd-container-app trex-container-app cnf-app-mac-operator testpmd-lb-operator testpmd-operator trex-operator nfv-example-cnf-index
OPERATOR_SDK_VER:= 1.33.0
# Print the possible targets and a short description
.PHONY: targets
targets:
@awk -F: '/^.PHONY/ {print $$2}' Makefile | grep -v targets | column -t -s '#'
.PHONY: all # Build and push all images
all:
@set -ex; for d in $(shell env FORCE_BUILD=$(FORCE_BUILD) ./generate-versions.sh "versions.cfg" "${DATE}.${SHA}"); do make -C $$d all SHA=$(SHA) DATE=$(DATE) OPERATOR_SDK_VER=$(OPERATOR_SDK_VER) RELEASE=${RELEASE}; done
.PHONY: build-all # Build all images
build-all:
@set -ex; for d in $(shell env FORCE_BUILD=$(FORCE_BUILD) ./generate-versions.sh "versions.cfg" "${DATE}.${SHA}"); do make -C $$d build-all SHA=$(SHA) DATE=$(DATE) OPERATOR_SDK_VER=$(OPERATOR_SDK_VER) RELEASE=${RELEASE}; done
.PHONY: version # Display all the versions
version:
@for d in $(DIRS); do echo -n "$$d: "; make -sC $$d version; done