File: system.mdd

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (35 lines) | stat: -rw-r--r-- 821 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name=zsh/system
link=dynamic
load=no

autofeatures="b:sysread b:syswrite b:sysopen b:sysseek b:syserror p:errnos f:systell"

objects="system.o errnames.o"

headers="errcount.h"

:<<\Make
# careful: ERRNO_H may contain a list
errnames.c: errnames1.awk errnames2.awk $(dir_top)/config.h @ERRNO_H@
	   if [ x"@ERRNO_H@" = x ]; then \
		touch errtmp.out; \
	   else \
		$(AWK) -f $(sdir)/errnames1.awk @ERRNO_H@ >errtmp.c; \
		case "`$(CPP) --version </dev/null 2>&1`" in \
		*"Free Software Foundation"*) \
		$(CPP) -P errtmp.c >errtmp.out;; \
		*) \
		$(CPP) errtmp.c >errtmp.out;; \
		esac; \
	   fi
	   $(AWK) -f $(sdir)/errnames2.awk errtmp.out > $@
	   rm -f errtmp.c errtmp.out

errcount.h: errnames.c
	grep 'define.*ERRCOUNT' errnames.c > $@

clean-here: clean.system
clean.system:
	rm -f errcount.h errnames.c
Make