Skip to content

Commit 029362f

Browse files
committed
int - Build arguments can now be injected
--- In the Makefile, you can now inject the build arguments using the BUILDARGS variable. --- Type: int Breaking: False Doc Required: False Backport Required: False Part: 1/1
1 parent 47e9e51 commit 029362f

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

Makefile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,20 @@ OUTPUTS := \
88

99
# General use
1010

11-
all: all-online
11+
all:
12+
$(MAKE) all-online BUILDARGS="$(BUILDARGS)"
1213

13-
all-online: invoke-build
14+
all-online:
15+
$(MAKE) invoke-build ENVIRONMENT=Release BUILDARGS="$(BUILDARGS)"
1416

1517
dbg:
16-
$(MAKE) invoke-build ENVIRONMENT=Debug
18+
$(MAKE) invoke-build ENVIRONMENT=Debug BUILDARGS="$(BUILDARGS)"
1719

1820
dbg-ci:
19-
$(MAKE) invoke-build-ci ENVIRONMENT=Debug
21+
$(MAKE) invoke-build ENVIRONMENT=Debug BUILDARGS="-p:ContinuousIntegrationBuild=true $(BUILDARGS)"
2022

2123
rel-ci:
22-
$(MAKE) invoke-build-ci ENVIRONMENT=Release
24+
$(MAKE) invoke-build ENVIRONMENT=Release BUILDARGS="-p:ContinuousIntegrationBuild=true $(BUILDARGS)"
2325

2426
doc: invoke-doc-build
2527

@@ -29,10 +31,7 @@ clean:
2931
# Below targets specify functions for full build
3032

3133
invoke-build:
32-
bash tools/build.sh "$(ENVIRONMENT)"
33-
34-
invoke-build-ci:
35-
bash tools/build.sh "$(ENVIRONMENT)" -p:ContinuousIntegrationBuild=true
34+
bash tools/build.sh "$(ENVIRONMENT)" $(BUILDARGS)
3635

3736
invoke-doc-build:
3837
bash tools/docgen.sh

0 commit comments

Comments
 (0)