Makefile: SYSEXITS: use cpp -include instead of printf

This commit is contained in:
dtb 2024-06-27 20:40:14 -06:00
parent bdd258e7c4
commit ab14fd6c0c
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

@ -18,7 +18,7 @@ PREFIX ?= /usr/local
MANDIR != [ $(PREFIX) = / ] && printf '/usr/share/man\n' \
|| printf '/share/man\n'
SYSEXITS != printf '\043include <sysexits.h>\n' | cpp -M - | tr ' ' '\n' \
SYSEXITS != </dev/null cpp -M -include sysexits.h - | tr ' ' '\n' \
| sed -n 's/sysexits\.h//p' || printf 'include\n'
CC ?= cc