This should help people notice that they are generated.
Note: each file already has a comment to that effect from help2man.
* man/Makefile.am (.x.1): Make generated files read-only.
Also, don't redirect directly to the target, $@.
'or inadequate' 1>&2 \
;; \
*) \
- rm -f $@ \
+ rm -f $@ $@-t \
&& { \
rm -rf $t; \
mkdir $t; \
--include=$(srcdir)/$*.x \
--output=$t/$@ $t/$*; \
} \
- && sed 's|$*\.td/||g' $t/$@ > $@ \
- && rm -rf $t ;; \
+ && sed 's|$*\.td/||g' $t/$@ > $@-t \
+ && rm -rf $t \
+ && chmod -w $@-t \
+ && mv $@-t $@ \
+ ;; \
esac
distcheck-hook: check-x-vs-1 check-programs-vs-x