1 # nbd client library in userspace
4 # This library is free software; you can redistribute it and/or
5 # modify it under the terms of the GNU Lesser General Public
6 # License as published by the Free Software Foundation; either
7 # version 2 of the License, or (at your option) any later version.
9 # This library is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 # Lesser General Public License for more details.
14 # You should have received a copy of the GNU Lesser General Public
15 # License along with this library; if not, write to the Free Software
16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18 include $(top_srcdir)/common-rules.mk
20 ACLOCAL_AMFLAGS = -I m4
29 scripts/git.orderfile \
65 # Check no files are missing from EXTRA_DIST rules, and that all
66 # generated files have been included in the tarball. (Note you must
67 # have done 'make dist')
68 maintainer-check-extra-dist:
69 @zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
70 sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
74 -e '^\.gitlab-ci.yml' \
77 @comm -13 tarfiles gitfiles > comm-out
78 @echo Checking for differences between EXTRA_DIST and git ...
81 @rm tarfiles gitfiles comm-out
82 @echo PASS: EXTRA_DIST tests
85 @for d in tests info copy fuse ocaml/tests interop; do \
86 $(MAKE) -C $$d check-valgrind || exit 1; \
90 @for d in common/utils; do \
91 $(MAKE) -C $$d bench || exit 1; \
96 $(MAKE) -C $$d check-root || exit 1; \
99 #----------------------------------------------------------------------
102 # Commit everything in the current directory and set the commit
103 # message to the current version number.
105 git commit -a -m "Version $(VERSION)."
107 # Tag HEAD with the current version.
109 git tag -a v$(VERSION) -m "Version $(VERSION)." -f
111 # Build golang distribution file. This is unpacked on the webserver
112 # under libguestfs.org/libnbd/golang/
113 maintainer-golang-dist:
114 cd golang && ./make-dist.sh