bubblewrap/Makefile.am

103 lines
2.3 KiB
Makefile
Raw Normal View History

2022-05-13 20:02:29 +08:00
AM_CFLAGS = $(WARN_CFLAGS)
CLEANFILES =
EXTRA_DIST = \
.dir-locals.el \
.editorconfig \
README.md \
autogen.sh \
2024-04-24 09:12:01 +08:00
completions/bash/meson.build \
completions/meson.build \
completions/zsh/meson.build \
2022-05-13 20:02:29 +08:00
demos/bubblewrap-shell.sh \
demos/flatpak-run.sh \
demos/flatpak.bpf \
demos/userns-block-fd.py \
2024-04-24 09:12:01 +08:00
meson.build \
meson_options.txt \
2022-05-13 20:02:29 +08:00
packaging/bubblewrap.spec \
2024-04-24 09:12:01 +08:00
tests/meson.build \
tests/use-as-subproject/README \
tests/use-as-subproject/config.h \
tests/use-as-subproject/dummy-config.h.in \
tests/use-as-subproject/meson.build \
2022-05-13 20:02:29 +08:00
uncrustify.cfg \
uncrustify.sh \
$(NULL)
GITIGNOREFILES = build-aux/ gtk-doc.make config.h.in aclocal.m4
bin_PROGRAMS = bwrap
bwrap_srcpath := $(srcdir)
include Makefile-bwrap.am
install-exec-hook:
if PRIV_MODE_SETUID
$(SUDO_BIN) chown root $(DESTDIR)$(bindir)/bwrap
$(SUDO_BIN) chmod u+s $(DESTDIR)$(bindir)/bwrap
endif
2024-04-24 09:12:01 +08:00
test_programs = \
tests/test-utils \
$(NULL)
test_scripts = \
tests/test-run.sh \
tests/test-seccomp.py \
tests/test-specifying-userns.sh \
tests/test-specifying-pidns.sh \
$(NULL)
test_extra_programs = \
test-bwrap \
tests/try-syscall \
$(NULL)
2022-05-13 20:02:29 +08:00
2024-04-24 09:12:01 +08:00
test-bwrap$(EXEEXT): bwrap
2022-05-13 20:02:29 +08:00
rm -rf test-bwrap
cp bwrap test-bwrap
2024-04-24 09:12:01 +08:00
chmod 0755 test-bwrap
2022-05-13 20:02:29 +08:00
if PRIV_MODE_SETUID
$(SUDO_BIN) chown root test-bwrap
$(SUDO_BIN) chmod u+s test-bwrap
endif
2024-04-24 09:12:01 +08:00
tests_test_utils_SOURCES = \
tests/test-utils.c \
utils.h \
utils.c \
$(NULL)
tests_test_utils_LDADD = $(SELINUX_LIBS)
2022-05-13 20:02:29 +08:00
test_bwrap_SOURCES=
include Makefile-docs.am
LOG_DRIVER = env AM_TAP_AWK='$(AWK)' $(SHELL) $(top_srcdir)/build-aux/tap-driver.sh
LOG_COMPILER =
2024-04-24 09:12:01 +08:00
TESTS_ENVIRONMENT = \
BWRAP=$(abs_top_builddir)/test-bwrap \
G_TEST_BUILDDIR=$(abs_top_builddir) \
G_TEST_SRCDIR=$(abs_top_srcdir) \
$(NULL)
check_PROGRAMS = $(test_programs) $(test_extra_programs)
TESTS = $(test_programs) $(test_scripts)
2022-05-13 20:02:29 +08:00
2024-04-24 09:12:01 +08:00
EXTRA_DIST += $(test_scripts)
2022-05-13 20:02:29 +08:00
EXTRA_DIST += tests/libtest-core.sh
2024-04-24 09:12:01 +08:00
EXTRA_DIST += tests/libtest.sh
2022-05-13 20:02:29 +08:00
if ENABLE_BASH_COMPLETION
bashcompletiondir = $(BASH_COMPLETION_DIR)
dist_bashcompletion_DATA = completions/bash/bwrap
endif
2024-04-24 09:12:01 +08:00
if ENABLE_ZSH_COMPLETION
zshcompletiondir = $(ZSH_COMPLETION_DIR)
dist_zshcompletion_DATA = completions/zsh/_bwrap
endif
2022-05-13 20:02:29 +08:00
-include $(top_srcdir)/git.mk
AM_DISTCHECK_CONFIGURE_FLAGS = \
--with-bash-completion-dir="\$(datadir)"/bash-completion/ \
$(NULL)