forked from open-edge-platform/scenescape
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (32 loc) · 1.06 KB
/
Makefile
File metadata and controls
38 lines (32 loc) · 1.06 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
# SPDX-FileCopyrightText: (C) 2025 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
SUB_FOLDERS := docker controller/docker autocalibration/docker percebro/docker
EXTRA_BUILD_FLAGS :=
TARGET_BRANCH ?= $(if $(CHANGE_TARGET),$(CHANGE_TARGET),$(BRANCH_NAME))
ifeq ($(or $(findstring DAILY,$(BUILD_TYPE)),$(findstring TAG,$(BUILD_TYPE))),true)
EXTRA_BUILD_FLAGS := rebuild
endif
ifeq ($(or $(TARGET_BRANCH)),rc beta-rc)
EXTRA_BUILD_FLAGS := rebuild
endif
.PHONY: build
build: check-tag build-certificates build-docker
.PHONY: check-tag
check-tag:
ifeq ($(BUILD_TYPE),TAG)
@echo "Checking if tag matches sscape/version.txt..."
@if grep --quiet $(BRANCH_NAME) sscape/version.txt; then \
echo "Perfect - Tag and Version is matching"; \
else \
echo "There is some mismatch between Tag and Version"; \
exit 1; \
fi
endif
.PHONY: build-certificates
build-certificates:
make -C certificates CERTPASS=$$(openssl rand -base64 12)
.PHONY: build-docker
build-docker:
for dir in $(SUB_FOLDERS); do \
$(MAKE) http_proxy=$(http_proxy) -C $$dir $(EXTRA_BUILD_FLAGS); \
done