n-t-roff / heirloom-doctools

The Heirloom Documentation Tools: troff, nroff, and related utilities
http://n-t-roff.github.io/heirloom/doctools.html
Other
126 stars 23 forks source link

Let us override variables in make #10

Closed saper closed 9 years ago

n-t-roff commented 9 years ago

"?=" is IMHO a BSD extension. I'd like to keep the makefile as close as possible to POSIX and avoid special extensions from GNU or BSD.

Would it not be possible to use e.g. sed(1) to modify the file? If this would be possible I would favour this solution.

Of course also I could modify it in case I detect a GNU system. But changing this file also causes work to ofther package maintainers (OpenBSD, Slackware), at least I'd like to know their opinion too before I do the change.

saper commented 9 years ago

Thanks for pointing this out. Just checked with Solaris 9 and both /usr/ccs/bin/make and /usr/xpg4/bin/make fail with

make: Fatal error in reader: Makefile, line *n*: Badly formed macro assignment