build: Provide error when pre-built manual page is not present

This commit is contained in:
Marcel Holtmann 2019-10-03 10:21:28 +02:00
parent a6e9ba71eb
commit 05de140e37
1 changed files with 2 additions and 1 deletions

View File

@ -599,7 +599,8 @@ if RUN_RST2MAN
RST2MAN_PROCESS = $(AM_V_GEN)$(RST2MAN) --strict --no-raw --no-generator \
--no-datestamp < $< > $@
else
RST2MAN_PROCESS = $(AM_V_GEN)touch $@
RST2MAN_PROCESS = $(AM_V_GEN)test -f $@ || \
{ echo "Generated manual page $@ does not exist"; false; }
endif
%.service: %.service.in Makefile