Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
steam-runtime-tools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
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
steamrt
steam-runtime-tools
Commits
774f6c49
Commit
774f6c49
authored
6 years ago
by
Simon McVittie
Browse files
Options
Downloads
Patches
Plain Diff
build: Add a rule to build a binary release
Signed-off-by:
Simon McVittie
<
smcv@collabora.com
>
parent
82642598
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
Makefile
+25
-7
25 additions, 7 deletions
Makefile
with
26 additions
and
7 deletions
.gitignore
+
1
−
0
View file @
774f6c49
...
...
@@ -2,4 +2,5 @@
/libcapsule/
/libcapsule_*.dsc
/libcapsule_*.tar.[gx]z
/pressure-vessel-[0-9]*.tar.gz
/relocatable-install/
This diff is collapsed.
Click to expand it.
Makefile
+
25
−
7
View file @
774f6c49
all
:
install
VERSION
:=
$(
shell ./build-aux/git-version-gen .tarball-version
)
all
:
binary
mirror
=
http://deb.debian.org/debian
tarball
=
_build/sysroot.tar.gz
sysroot
=
_build/sysroot
_build/sysroot/etc/debian_version
:
$(tarball)
Makefile
_build/sysroot/etc/debian_version
:
$(tarball)
rm
-fr
_build/sysroot
mkdir
-p
_build/sysroot
tar
-zxf
$(
tarball
)
--exclude
=
"./dev/*"
-C
_build/sysroot
touch
$@
_build/sysroot.tar.gz
:
sysroot/debos.yaml
Makefile
_build/sysroot.tar.gz
:
sysroot/debos.yaml
mkdir
-p
$(
dir
$@
)
debos
-t
mirror:
$(
mirror
)
-t
ospack:
$@
sysroot/debos.yaml
...
...
@@ -26,7 +28,9 @@ in_sysroot = \
--setenv
LC_ALL C.UTF-8
\
$(
NULL
)
install
:
install-amd64 install-i386 libcapsule/configure $(sysroot)/etc/debian_version
install
:
rm
-fr
relocatable-install
$(
MAKE
)
install-amd64 install-i386
install
pressure-vessel-wrap relocatable-install/bin/
mkdir
-p
relocatable-install/sources
install
-m644
THIRD-PARTY.md relocatable-install/sources/README.txt
...
...
@@ -58,9 +62,10 @@ in-sysroot/libcapsule/configure:
mv
libcapsule-
*
/ libcapsule
set
-e
;
cd
libcapsule
;
NOCONFIGURE
=
1 ./autogen.sh
_build/%/config.sta
tus
:
libcapsule/configure
Makefile
$(sysroot)/etc/debian_version
_build/%/config.sta
mp
:
libcapsule/configure $(sysroot)/etc/debian_version
mkdir
-p
_build/
$*
/libcapsule
$(
in_sysroot
)
$(
MAKE
)
in
-sysroot
/configure-
$*
touch
$@
in-sysroot/configure-%
:
set
-eu
;
\
...
...
@@ -80,10 +85,11 @@ in-sysroot/configure-%:
--disable-gtk-doc
\
$(
NULL
)
build
-%
:
_build/%/config.sta
tus Makefile
$(sysroot)/etc/debian_version
_
build
/%/build.stamp
:
_build/%/config.sta
mp
$(sysroot)/etc/debian_version
$(
in_sysroot
)
$(
MAKE
)
-C
_build/
$*
/libcapsule
touch
$@
install-%
:
build-% Makefile $(sysroot)/etc/debian_version
install-%
:
mkdir
-p
relocatable-install/bin
$(
in_sysroot
)
$(
MAKE
)
in
-sysroot
/install-
$*
...
...
@@ -105,3 +111,15 @@ in-sysroot/install-%:
check
:
prove
-v
t/
binary
:
pressure-vessel-$(VERSION)-bin.tar.gz
pressure-vessel-$(VERSION)-bin.tar.gz
:
$(
MAKE
)
install
tar
-C
relocatable-install
-zcvf
$@
.tmp .
mv
$@
.tmp
$@
clean
:
rm
-fr
pressure-vessel-[0-9]
*
.tar.gz
rm
-fr
_build
rm
-fr
relocatable-install
rm
-fr
libcapsule
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