Makefile: SYSEXITS: use /dev/null directly instead of in a pipe

This commit is contained in:
dtb 2024-06-27 20:41:49 -06:00
parent ab14fd6c0c
commit 6efd398425
Signed by: trinity
GPG Key ID: 34C0543BBB6AF81B

View File

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