make sure built files are most recent

This commit is contained in:
Frank Morgner
2015-07-31 19:10:32 +02:00
parent ac470673d3
commit 051e9a999c

View File

@@ -34,9 +34,15 @@ AX_PTHREAD
AC_ARG_VAR([HELP2MAN],
[absolute path to help2man used for man page generation of vicc])
AC_PATH_PROG(HELP2MAN, help2man, not found)
if test ! -r src/vpicc/vicc.1 -a "${HELP2MAN}" = "not found"
if test ! -r src/vicc.1
then
AC_MSG_ERROR([Need help2man to generate man page for vicc])
if test "${HELP2MAN}" = "not found"
then
AC_MSG_ERROR([Need help2man to generate man page for vicc])
fi
else
# make sure these files are the most recent
touch src/vicc.1
fi
# If you need to see the details, just run make V=1.