Summary Files Commits Branches @commit @diff @stats
path: root / configure
diff options
context:
space:
mode:
Commitdd3e46487b980fd0f2b9aa017b27e1af2f2bd07a (patch)
Author
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-10-01 21:19:58 +0200
Committer
 Haelwenn (lanodan) Monnier <contact@hacktivis.me>
2021-10-01 21:35:57 +0200
Files125e4b3998670ba762d799db49a6170e90f17427 /configure
goodwolf-dd3e46487b980fd0f2b9aa017b27e1af2f2bd07a.tar
goodwolf-dd3e46487b980fd0f2b9aa017b27e1af2f2bd07a.tar.gz
goodwolf-dd3e46487b980fd0f2b9aa017b27e1af2f2bd07a.zip
Parent76c98a18dfe8459c09ee051c8860a406c527687b (diff)
Make: Add manpage linting
mandb / GNU groff seems to have less tolerance than mandoc for rendering slightly broken manpages, which is rather annoying in my case.
1 files changed, 11 insertions, 0 deletions
-rwxr-xr-xconfigure11
diff --git a/configure b/configure
index c5fe4a8..b3e179a 100755
--- a/configure
+++ b/configure
@@ -13,6 +13,7 @@ MSGFMT="${MSGFMT:-msgfmt}"
INKSCAPE="${INKSCAPE:-inkscape}"
CC="${CC:-cc}"
CFLAGS="${CFLAGS:--g -O2 -pie -fPIE} -fstack-protector-strong -D_FORTIFY_SOURCE=2 -Wall -Wextra -Wconversion -Wsign-conversion -Werror=implicit-function-declaration -Werror=implicit-int -Werror=vla ${EXTRA_CFLAGS}"
+MANDOC="mandoc"
DEPS="gtk+-3.0 libxml-2.0"
@@ -44,6 +45,15 @@ command -v "${PKGCONFIG}" >/dev/null ; required
printf 'Checking %s command existance ...' "${CC}"
command -v "${CC}" >/dev/null ; required
+printf 'Checking %s command existance ...' "${MANDOC}"
+if command -v "${CC}" >/dev/null ; is_ok
+then
+ :
+else
+ MANDOC="true"
+fi
+
+
for dep in ${DEPS}
do
pkg_config_check --exists "$dep" || exit 1
@@ -100,6 +110,7 @@ CC = ${CC}
INKSCAPE = ${INKSCAPE}
MSGFMT = ${MSGFMT}
DBG = ${DBG}
+MANDOC = ${MANDOC}
CFLAGS = ${CFLAGS} -DDATADIR=\"\${DATADIR}\" -DPACKAGE=\"\${PACKAGE}\" -D_XOPEN_SOURCE=700 -D_POSIX_C_SOURCE=200809L -DVERSION=\"\${VERSION_FULL}\" ${DEPS_cflags}
LIBS = ${DEPS_libs}