Closed Bandie closed 6 years ago
We both (@jordydickinson and I) just found out that autotool is a very limited piece of software barely to understand.
piping into gzip doesn't work properly. Using gzip -c - >$@
just doesn't work.
It looks like it's sed
's fault actually. sed
shouldn't be writing directly to the files. It looks like $(SED)
may in fact be some form of sed -i
.
Actually, separating it into two rules won't matter. You only need to do that for Make's dependency detection, which we don't really need in this case.
:tada:
This can be done without
sed
by adding files to theAC_CONFIG_FILES
call at the end ofconfigure.ac
. If you addFILENAME
to that list, when autoconf sees aFILENAME.in
file, it will replace all occurrences of@PPASSFILE@
and otherAC_SUBST
variables enclosed in at signs with the value of the variable. You only have to do this with one.in
file containing groff defines, which can then becat
ed to the top of the man page before gzipping