1name=zsh/system 2link=dynamic 3load=no 4 5autofeatures="b:sysread b:syswrite b:syserror p:errnos" 6 7objects="system.o errnames.o" 8 9headers="errcount.h" 10 11:<<\Make 12# careful: ERRNO_H may contain a list 13errnames.c: errnames1.awk errnames2.awk $(dir_top)/config.h @ERRNO_H@ 14 if [ x"@ERRNO_H@" = x ]; then \ 15 touch errtmp.out; \ 16 else \ 17 $(AWK) -f $(sdir)/errnames1.awk @ERRNO_H@ >errtmp.c; \ 18 $(CPP) errtmp.c >errtmp.out; \ 19 fi 20 $(AWK) -f $(sdir)/errnames2.awk errtmp.out > $@ 21 rm -f errtmp.c errtmp.out 22 23errcount.h: errnames.c 24 grep 'define.*ERRCOUNT' errnames.c > $@ 25 26clean-here: clean.system 27clean.system: 28 rm -f errcount.h errnames.c 29Make 30 31