Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nexus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
guillaum.pin
nexus
Commits
07eb46c6
Commit
07eb46c6
authored
6 months ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
Updated Makefile: added check for CERT env. var
parent
b954b34b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+7
-5
7 additions, 5 deletions
Makefile
with
7 additions
and
5 deletions
Makefile
+
7
−
5
View file @
07eb46c6
...
...
@@ -221,11 +221,13 @@ check_bin_var:
check_server_var
:
$(
call check_defined, SERVER
)
check_cert_var
:
$(
call check_defined, CERT
)
check_login_var
:
$(
call check_defined, LOGIN
)
check_nexus_exam_vars
:
$(
call check_defined, CERT
)
$(
call check_defined, EXAM_USER
)
$(
call check_defined, EXAM_PWD
)
...
...
@@ -273,7 +275,7 @@ else
@
echo
-n
""
>
$(
RESOURCES_DIR_CLIENT
)
/
$(
CA_CERT_FILE
)
endif
xbuild_client
:
check_bin_var check_server_var copy_resources_client $(SRC_CLIENT)/nexush $(SRC_CLIENT)/nexus-cli
xbuild_client
:
check_bin_var check_server_var
check_cert_var
copy_resources_client $(SRC_CLIENT)/nexush $(SRC_CLIENT)/nexus-cli
@
echo
"[Cross-building
$(
BIN
)
into
$(
BUILD_DIR_CLIENT
)
directory]"
@
for
os
in
$(
OSES_CLIENT
);
do
\
for
arch
in
$(
ARCHES_CLIENT
);
do
\
...
...
@@ -296,15 +298,15 @@ xbuild_client: check_bin_var check_server_var copy_resources_client $(SRC_CLIENT
$(BUILD_DIR_CLIENT)
:
mkdir
$@
build_nexush
:
check_server_var copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexush
build_nexush
:
check_server_var
check_cert_var
copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexush
@
echo
"[Building nexush into
$(
BUILD_DIR_CLIENT
)
directory]"
@
cd
$(
SRC_CLIENT
)
/nexush
&&
go build
$(
BUILD_FLAGS
)
$(
BUILD_CLIENT_FLAGS
)
&&
mv
nexush
$(
BUILD_ABS_CLIENT
)
build_nexus-cli
:
check_server_var copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexus-cli
build_nexus-cli
:
check_server_var
check_cert_var
copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexus-cli
@
echo
"[Building nexus-cli into
$(
BUILD_DIR_CLIENT
)
directory]"
@
cd
$(
SRC_CLIENT
)
/nexus-cli
&&
go build
$(
BUILD_FLAGS
)
$(
BUILD_CLIENT_FLAGS
)
&&
mv
nexus-cli
$(
BUILD_ABS_CLIENT
)
build_nexus-exam
:
check_server_var check_nexus_exam_vars copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexus-exam
build_nexus-exam
:
check_server_var
check_cert_var
check_nexus_exam_vars copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexus-exam
@
echo
"[Building nexus-exam into
$(
BUILD_DIR_CLIENT
)
directory]"
@
echo
-n
'
$(
value EXAM_USER
)
'
>
$(
NEXUS_EXAM_USER_CREDS_FILE
)
@
echo
-n
'
$(
value EXAM_PWD
)
'
>
$(
NEXUS_EXAM_PWD_CREDS_FILE
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment