1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
## Process this file with automake to produce Makefile.in
SHELL = @BASH@
.SHELLFLAGS = -o pipefail -c
PYTHON ?= python3
NULL =
SUBDIRS = data udisks
if ENABLE_DAEMON
SUBDIRS += src
endif
SUBDIRS += tools modules po doc
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
GCC_COLORS ?= 'auto'
export GCC_COLORS
EXTRA_DIST = \
HACKING \
README.md \
$(NULL)
DISTCHECK_CONFIGURE_FLAGS = \
--enable-gtk-doc \
--enable-modules \
--enable-introspection \
--with-udevdir=$$dc_install_base/$(udevdir) \
--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir) \
$(NULL)
sign: dist
gpg --armor --detach-sign --output udisks-$(VERSION).tar.bz2.sign udisks-$(VERSION).tar.bz2
shortlog:
git shortlog -r --no-merges $$(git tag --list 'udisks*' --sort=version:refname --merged master | tail -n 1)..HEAD
clean-local:
rm -f *~
dbus-tests:
$(MAKE) all &>/dev/null
sudo $(PYTHON) src/tests/dbus-tests/run_tests.py -l dbus_tests.log |& tee dbus_tests_output.log \
&& echo "dbus-tests: SUCCESS" >> RESULTS || echo "dbus-tests: FAILED" >> RESULTS
@tail -1 RESULTS | grep -q "dbus-tests: SUCCESS"
unittests:
$(MAKE) all &>/dev/null
cd src/tests && ./udisks-test | tee -a ../../unittests_output.log \
&& echo "unittests: SUCCESS" >> ../../RESULTS || echo "unittests: FAILED" >> ../../RESULTS
@tail -1 RESULTS | grep -q "unittests: SUCCESS"
integration-tests:
$(MAKE) all &>/dev/null
cd src/tests && sudo $(PYTHON) ./integration-test | tee -a ../../integration_tests_output.log \
&& echo "integration-tests: SUCCESS" >> ../../RESULTS || echo "integration-tests: FAILED" >> ../../RESULTS
@tail -1 RESULTS | grep -q "integration-tests: SUCCESS"
ci: all
sudo rm -f *.log RESULTS STATUS
-$(MAKE) check
-$(MAKE) dbus-tests
-$(MAKE) unittests
-$(MAKE) integration-tests
@grep -q FAILED RESULTS && echo -n failure > STATUS || echo -n success > STATUS
@grep -q success STATUS
RPMDIR = `readlink -f $(top_builddir)/packaging`
SRCDIR = `readlink -f $(top_srcdir)`
rpm: dist-bzip2
rpmbuild \
--define "_sourcedir $(SRCDIR)" \
--define "_specdir $(RPMDIR)" \
--define "_builddir $(RPMDIR)" \
--define "_srcrpmdir $(RPMDIR)" \
--define "_rpmdir $(RPMDIR)" \
-ba $(SRCDIR)/packaging/udisks2.spec
srpm: dist-bzip2
rpmbuild \
--define "_sourcedir $(SRCDIR)" \
--define "_specdir $(RPMDIR)" \
--define "_builddir $(RPMDIR)" \
--define "_srcrpmdir $(RPMDIR)" \
--define "_rpmdir $(RPMDIR)" \
-bs $(SRCDIR)/packaging/udisks2.spec
|