summaryrefslogtreecommitdiffstats
path: root/Makefile.am
diff options
context:
space:
mode:
authorExplorer09 <explorer09@gmail.com>2018-04-06 23:47:55 +0800
committerHisham Muhammad <hisham@gobolinux.org>2018-08-24 16:00:59 -0300
commitebf3cff1acb835ff7938762c36afeada5a05fcf7 (patch)
tree3ee720904a6e1a7c4ba993a9b0a83b90fcdb27e6 /Makefile.am
parent7bbb3600fc6e73e1f27e9aab834f3451b65bf167 (diff)
Disable 'make dist' when pkg.m4 is unused in configure
This would prevent a careless future package maintainer from creating a release tarball with a defective configure script. :) Also, add a warning in the autogen.sh phase if pkg.m4 is unused. Signed-off-by: Kang-Che Sung <explorer09@gmail.com>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am7
1 files changed, 7 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index b71a9e86..35aa254f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -215,6 +215,13 @@ coverage:
cppcheck:
cppcheck -q -v . --enable=all -DHAVE_CGROUP -DHAVE_OPENVZ -DHAVE_TASKSTATS
+dist-hook: $(top_distdir)/configure
+ @if grep 'pkg_m4_absent' '$(top_distdir)/configure'; then \
+ echo 'configure is generated without pkg.m4. Please supply pkg.m4 and run ./autogen.sh to rebuild the configure script.'>&2; \
+ (exit 1); \
+ else :; \
+ fi
+
.PHONY: lcov
lcov:

© 2014-2024 Faster IT GmbH | imprint | privacy policy