Revert "ci: skip "lib/test-fork-safe-execvpe.sh" on Alpine Linux"
[libnbd.git] / Makefile.am
blob243fabd757105d2c5e9526c394d4adbbf67734e4
1 # nbd client library in userspace
2 # Copyright Red Hat
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
22 EXTRA_DIST = \
23         .dir-locals.el \
24         .editorconfig \
25         .gitattributes \
26         .gitignore \
27         html/pod.css \
28         README.md \
29         scripts/git.orderfile \
30         SECURITY \
31         $(NULL)
33 CLEANFILES += m4/*~
35 SUBDIRS = \
36         generator \
37         include \
38         common/include \
39         common/utils \
40         lib \
41         docs \
42         examples \
43         valgrind \
44         . \
45         tests \
46         python \
47         sh \
48         info \
49         copy \
50         dump \
51         fuse \
52         ublk \
53         ocaml \
54         ocaml/examples \
55         ocaml/tests \
56         golang \
57         golang/examples \
58         interop \
59         fuzzing \
60         bash-completion \
61         $(NULL)
63 noinst_SCRIPTS = run
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
71         @git ls-files | \
72       grep -v \
73             -e '^\.cirrus.yml' \
74             -e '^\.gitlab-ci.yml' \
75             -e '^ci/' | \
76             sort > gitfiles
77         @comm -13 tarfiles gitfiles > comm-out
78         @echo Checking for differences between EXTRA_DIST and git ...
79         @cat comm-out
80         @[ ! -s comm-out ]
81         @rm tarfiles gitfiles comm-out
82         @echo PASS: EXTRA_DIST tests
84 check-valgrind: all
85         @for d in tests info copy fuse ocaml/tests interop; do \
86             $(MAKE) -C $$d check-valgrind || exit 1; \
87         done
89 bench: all
90         @for d in common/utils; do \
91             $(MAKE) -C $$d bench || exit 1; \
92         done
94 check-root:
95         @for d in copy; do \
96             $(MAKE) -C $$d check-root || exit 1; \
97         done
99 #----------------------------------------------------------------------
100 # Maintainers only!
102 # Commit everything in the current directory and set the commit
103 # message to the current version number.
104 maintainer-commit:
105         git commit -a -m "Version $(VERSION)."
107 # Tag HEAD with the current version.
108 maintainer-tag:
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