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
flg_projects
nexus_vdi
nexus
Commits
ffb8d176
Commit
ffb8d176
authored
1 year ago
by
Florent Gluck
Browse files
Options
Downloads
Patches
Plain Diff
Updated Makefile to build clients properly
parent
7f2b14ef
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Makefile
+6
-6
6 additions, 6 deletions
Makefile
with
6 additions
and
6 deletions
Makefile
+
6
−
6
View file @
ffb8d176
...
...
@@ -196,7 +196,7 @@ set_permissions_srv:
#-------------------------------------------------------------------------
BUILD_FLAGS
=
build
BUILD_
CLIENT_
FLAGS
=
build
-buildvcs
=
false
# To force a full recompile:
# BUILD_FLAGS=build -a
BUILD_DIR_CLIENT
=
build
...
...
@@ -276,11 +276,11 @@ xbuild_client: check_bin_var check_server_var copy_resources_client $(SRC_CLIENT
cd
$(
SRC_ABS_CLIENT
)
/
$(
BIN
)
;
\
go clean
.
;
\
if
[
$$
os
=
"linux"
]
;
then
\
GOARCH
=
$$
arch
GOOS
=
$$
os
CGO_ENABLED
=
0 go
$(
BUILD_FLAGS
)
-o
$(
BUILD_ABS_CLIENT
)
/
$$
arch
/
$$
os/
;
\
GOARCH
=
$$
arch
GOOS
=
$$
os
CGO_ENABLED
=
0 go
$(
BUILD_
CLIENT_
FLAGS
)
-o
$(
BUILD_ABS_CLIENT
)
/
$$
arch
/
$$
os/
;
\
#strip -s
$(
BUILD_ABS_CLIENT
)
/
$$
arch
/
$$
os/
$(
BIN
)
;
\
#upx
$(
BUILD_ABS_CLIENT
)
/
$$
arch
/
$$
os/
$(
BIN
)
;
\
else
\
GOARCH
=
$$
arch
GOOS
=
$$
os go
$(
BUILD_FLAGS
)
-o
$(
BUILD_ABS_CLIENT
)
/
$$
arch
/
$$
os/
;
\
GOARCH
=
$$
arch
GOOS
=
$$
os go
$(
BUILD_
CLIENT_
FLAGS
)
-o
$(
BUILD_ABS_CLIENT
)
/
$$
arch
/
$$
os/
;
\
fi
\
fi
\
done
\
...
...
@@ -291,15 +291,15 @@ $(BUILD_DIR_CLIENT):
build_nexush
:
check_server_var copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexush
@
echo
"[Building nexush into
$(
BUILD_DIR_CLIENT
)
directory]"
@
cd
$(
SRC_CLIENT
)
/nexush
&&
go
build
-buildvcs
=
false
.
&&
mv
nexush
$(
BUILD_ABS_CLIENT
)
@
cd
$(
SRC_CLIENT
)
/nexush
&&
go
$(
BUILD_CLIENT_FLAGS
)
&&
mv
nexush
$(
BUILD_ABS_CLIENT
)
build_nexus-cli
:
check_server_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
-buildvcs
=
false
.
&&
mv
nexus-cli
$(
BUILD_ABS_CLIENT
)
@
cd
$(
SRC_CLIENT
)
/nexus-cli
&&
go
$(
BUILD_CLIENT_FLAGS
)
&&
mv
nexus-cli
$(
BUILD_ABS_CLIENT
)
build_nexus-exam
:
check_serverip_var copy_resources_client $(BUILD_DIR_CLIENT) $(SRC_CLIENT)/nexus-exam
@
echo
"[Building nexus-exam into
$(
BUILD_DIR_CLIENT
)
directory]"
@
cd
$(
SRC_CLIENT
)
/nexus-exam
&&
go
build
.
&&
mv
nexus-exam
$(
BUILD_ABS_CLIENT
)
@
cd
$(
SRC_CLIENT
)
/nexus-exam
&&
go
$(
BUILD_CLIENT_FLAGS
)
&&
mv
nexus-exam
$(
BUILD_ABS_CLIENT
)
@
strip
-s
$(
BUILD_DIR_CLIENT
)
/nexus-exam
clean_client
:
...
...
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