-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile.am
114 lines (100 loc) · 2.75 KB
/
Makefile.am
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
# nbd client library in userspace
# Copyright Red Hat
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
include $(top_srcdir)/common-rules.mk
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
.dir-locals.el \
.editorconfig \
.gitattributes \
.gitignore \
html/pod.css \
README.md \
scripts/git.orderfile \
SECURITY \
$(NULL)
CLEANFILES += m4/*~
SUBDIRS = \
generator \
include \
common/include \
common/utils \
lib \
docs \
examples \
valgrind \
. \
tests \
python \
sh \
info \
copy \
dump \
fuse \
ublk \
ocaml \
ocaml/examples \
ocaml/tests \
golang \
golang/examples \
interop \
fuzzing \
bash-completion \
$(NULL)
noinst_SCRIPTS = run
# Check no files are missing from EXTRA_DIST rules, and that all
# generated files have been included in the tarball. (Note you must
# have done 'make dist')
maintainer-check-extra-dist:
@zcat $(PACKAGE_NAME)-$(VERSION).tar.gz | tar tf - | sort | \
sed 's,^$(PACKAGE_NAME)-$(VERSION)/,,' > tarfiles
@git ls-files | \
grep -v \
-e '^\.cirrus.yml' \
-e '^\.gitlab-ci.yml' \
-e '^ci/' | \
sort > gitfiles
@comm -13 tarfiles gitfiles > comm-out
@echo Checking for differences between EXTRA_DIST and git ...
@cat comm-out
@[ ! -s comm-out ]
@rm tarfiles gitfiles comm-out
@echo PASS: EXTRA_DIST tests
check-valgrind: all
@for d in tests info copy fuse ocaml/tests interop; do \
$(MAKE) -C $$d check-valgrind || exit 1; \
done
bench: all
@for d in common/utils; do \
$(MAKE) -C $$d bench || exit 1; \
done
check-root:
@for d in copy; do \
$(MAKE) -C $$d check-root || exit 1; \
done
#----------------------------------------------------------------------
# Maintainers only!
# Commit everything in the current directory and set the commit
# message to the current version number.
maintainer-commit:
git commit -a -m "Version $(VERSION)."
# Tag HEAD with the current version.
maintainer-tag:
git tag -a v$(VERSION) -m "Version $(VERSION)." -f
# Build golang distribution file. This is unpacked on the webserver
# under libguestfs.org/libnbd/golang/
maintainer-golang-dist:
cd golang && ./make-dist.sh