diff options
author | Alexander Larsson <alexl@redhat.com> | 2016-04-29 11:39:30 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2016-04-29 15:38:23 +0200 |
commit | ee7be7f82dc72bc4bbbc9fce0ee66fa232baf7dc (patch) | |
tree | 191886d44a37f97343bae3fee486f0782923e4ef /Makefile.am | |
parent | 27642b3d6df1992f393748e7ade84d89a038df65 (diff) | |
download | xdg-app-ee7be7f82dc72bc4bbbc9fce0ee66fa232baf7dc.tar.gz |
Build bwrap
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am index dacbd23..234177f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -73,6 +73,22 @@ include document-portal/Makefile.am.inc include Makefile.gtester include tests/Makefile.am.inc +bwrap_PROGRAMS = bwrap +bwrapdir = $(libdir)/xdg-app +include bubblewrap/Makefile-bwrap.am.inc + +# NOTE: bwrap is install-bwrapPROGS which is run from install-data, not install-exec, this data-hook is used +install-data-hook: + $(MAKE) $(AM_MAKEFLAGS) install-test-data-hook +if PRIV_MODE_SETUID + $(SUDO_BIN) chown root $(DESTDIR)$(libdir)/xdg-app/bwrap + $(SUDO_BIN) chmod u+s $(DESTDIR)$(libdir)/xdg-app/bwrap +else +if PRIV_MODE_FILECAPS + $(SUDO_BIN) setcap cap_sys_admin,cap_net_admin,cap_sys_chroot+ep $(DESTDIR)$(libdir)/xdg-app/bwrap +endif +endif + completiondir = $(datadir)/bash-completion/completions completion_DATA = completion/xdg-app EXTRA_DIST += $(completion_DATA) |