Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
chain33-pai
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
szh
chain33-pai
Commits
13baa601
Commit
13baa601
authored
Jul 22, 2020
by
szh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加编译区别arch区别
parent
16b50ca6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
Makefile
Makefile
+4
-3
No files found.
Makefile
View file @
13baa601
...
@@ -3,10 +3,11 @@
...
@@ -3,10 +3,11 @@
check
=
$(
shell
if
[
!
-d
"./build/"
]
;
then
mkdir
build
;
else
echo
"exist"
;
fi
;
)
check
=
$(
shell
if
[
!
-d
"./build/"
]
;
then
mkdir
build
;
else
echo
"exist"
;
fi
;
)
version
=
$(
shell
./version.sh
)
version
=
$(
shell
./version.sh
)
tarfile
=
$(
shell
echo
"chain33-pai_
$(version)
.tar.gz"
|
sed
s/[[:space:]]//g
)
tarfile
=
$(
shell
echo
"chain33-pai_
$(version)
.tar.gz"
|
sed
s/[[:space:]]//g
)
tarfile_x86_64
=
$(
shell
echo
"chain33-pai-x86_64_
$(version)
.tar.gz"
|
sed
s/[[:space:]]//g
)
all
:
build
all
:
build
arm
:
arm
:
@
GOOS
=
linux
GOARCH
=
arm
GOARM
=
7 go build
-v
-o
pai .
@
GOOS
=
linux
GOARCH
=
arm
GOARM
=
7 go build
-
ldflags
"-X chain33-pai/pkg/app/version.ArchType=arm "
-
v
-o
pai .
@
echo
$(check)
@
echo
$(check)
@
rm
-rf
chain33-pai
@
rm
-rf
chain33-pai
@
mkdir
chain33-pai
@
mkdir
chain33-pai
...
@@ -22,7 +23,7 @@ arm:
...
@@ -22,7 +23,7 @@ arm:
@
echo
"ok"
@
echo
"ok"
build
:
build
:
@
go build
-v
-o
pai .
@
GOOS
=
linux
GOARCH
=
amd64 go build
-ldflags
"-X chain33-pai/pkg/app/version.ArchType=x86_64 "
-v
-o
pai .
@
echo
$(check)
@
echo
$(check)
@
rm
-rf
chain33-pai
@
rm
-rf
chain33-pai
@
mkdir
chain33-pai
@
mkdir
chain33-pai
...
@@ -32,7 +33,7 @@ build:
...
@@ -32,7 +33,7 @@ build:
@
cp
-r
scripts chain33-pai
@
cp
-r
scripts chain33-pai
@
chmod
+x chain33-pai/
*
.sh
@
chmod
+x chain33-pai/
*
.sh
@
chmod
+x chain33-pai/scripts/
*
.sh
@
chmod
+x chain33-pai/scripts/
*
.sh
@
tar
cvfpz
$(tarfile
)
chain33-pai
@
tar
cvfpz
$(tarfile
_x86_64)
chain33-pai
@
mv
$(tarfile)
build
@
mv
$(tarfile)
build
@
rm
-rf
chain33-pai
@
rm
-rf
chain33-pai
@
echo
"ok"
@
echo
"ok"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment