1 # Copyright (C) 2009 Internet Systems Consortium, Inc. ("ISC")
3 # Permission to use, copy, modify, and/or distribute this software for any
4 # purpose with or without fee is hereby granted, provided that the above
5 # copyright notice and this permission notice appear in all copies.
7 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
8 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
10 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
12 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13 # PERFORMANCE OF THIS SOFTWARE.
15 # Id: Makefile.in,v 1.5 2009/03/04 00:09:51 marka Exp
18 top_srcdir
= @top_srcdir@
22 MANDIR
= ${DESTDIR}/${mandir}
28 MANROFF
= ( ${TBL} |
${NROFF} -mandoc
)
31 # Extensions for the generated manual entries
36 LIB_NETWORK_MAN_EXT
= ${MAN_EXT}${LIB_NETWORK_EXT}
37 LIB_NETWORK_CAT_EXT
= ${CAT_EXT}${LIB_NETWORK_EXT}
39 FORMAT_MAN_EXT
= ${MAN_EXT}${FORMAT_EXT}
40 FORMAT_CAT_EXT
= ${CAT_EXT}${FORMAT_EXT}
42 DESC_MAN_EXT
= ${MAN_EXT}${DESC_EXT}
43 DESC_CAT_EXT
= ${CAT_EXT}${DESC_EXT}
46 # Network library routines manual entries
48 LIB_NETWORK_BASE
= gethostbyname inet_cidr resolver hesiod getnetent \
49 tsig getaddrinfo getnameinfo getipnodebyname
50 LIB_NETWORK_SRC
= gethostbyname.
${LIB_NETWORK_EXT} \
51 inet_cidr.
${LIB_NETWORK_EXT} \
52 resolver.
${LIB_NETWORK_EXT} \
53 hesiod.
${LIB_NETWORK_EXT} \
54 getnetent.
${LIB_NETWORK_EXT} \
55 tsig.
${LIB_NETWORK_EXT} \
56 getaddrinfo.
${LIB_NETWORK_EXT} \
57 getnameinfo.
${LIB_NETWORK_EXT} \
58 getipnodebyname.
${LIB_NETWORK_EXT}
59 LIB_NETWORK_MAN
= gethostbyname.
${LIB_NETWORK_MAN_EXT} \
60 inet_cidr.
${LIB_NETWORK_MAN_EXT} \
61 resolver.
${LIB_NETWORK_MAN_EXT} \
62 hesiod.
${LIB_NETWORK_MAN_EXT} \
63 getnetent.
${LIB_NETWORK_MAN_EXT} \
64 tsig.
${LIB_NETWORK_MAN_EXT} \
65 getaddrinfo.
${LIB_NETWORK_MAN_EXT} \
66 getnameinfo.
${LIB_NETWORK_MAN_EXT} \
67 getipnodebyname.
${LIB_NETWORK_MAN_EXT}
68 LIB_NETWORK_CAT
= gethostbyname.
${LIB_NETWORK_CAT_EXT} \
69 inet_cidr.
${LIB_NETWORK_CAT_EXT} \
70 resolver.
${LIB_NETWORK_CAT_EXT} \
71 hesiod.
${LIB_NETWORK_CAT_EXT} \
72 getnetent.
${LIB_NETWORK_CAT_EXT} \
73 tsig.
${LIB_NETWORK_CAT_EXT} \
74 getaddrinfo.
${LIB_NETWORK_CAT_EXT} \
75 getnameinfo.
${LIB_NETWORK_CAT_EXT} \
76 getipnodebyname.
${LIB_NETWORK_CAT_EXT}
77 LIB_NETWORK_OUT
= ${LIB_NETWORK_MAN} ${LIB_NETWORK_CAT}
80 # File format manual entries
82 FORMAT_BASE
= resolver irs.conf
83 FORMAT_SRC
= resolver.
${FORMAT_EXT} \
84 irs.conf.
${FORMAT_EXT}
85 FORMAT_MAN
= resolver.
${FORMAT_MAN_EXT} \
86 irs.conf.
${FORMAT_MAN_EXT}
87 FORMAT_CAT
= resolver.
${FORMAT_CAT_EXT} \
88 irs.conf.
${FORMAT_CAT_EXT}
89 FORMAT_OUT
= ${FORMAT_MAN} ${FORMAT_CAT}
92 # Feature Description manual entries
96 DESC_SRC
= hostname.
${DESC_EXT}
97 DESC_MAN
= hostname.
${DESC_MAN_EXT}
98 DESC_CAT
= hostname.
${DESC_CAT_EXT}
99 DESC_OUT
= ${DESC_MAN} ${DESC_CAT}
102 # This sed command is used to update the manual entries so they refer to
103 # the appropriate section of the manual for a given platform.
105 EXT_SED_CMD
= LIB_NETWORK_EXT_U
=`echo "${LIB_NETWORK_EXT}"|tr "[a-z]" "[A-Z]"`; \
106 export LIB_NETWORK_EXT_U
; \
107 FORMAT_EXT_U
=`echo "${FORMAT_EXT}"|tr "[a-z]" "[A-Z]"`; \
108 export FORMAT_EXT_U
; \
109 DESC_EXT_U
=`echo "${DESC_EXT}"|tr "[a-z]" "[A-Z]"`; \
111 SYSCALL_EXT_U
=`echo "${SYSCALL_EXT}"|tr "[a-z]" "[A-Z]"`; \
112 export SYSCALL_EXT_U
; \
113 BSD_SYSCALL_EXT_U
=`echo "${BSD_SYSCALL_EXT}"|tr "[a-z]" "[A-Z]"`; \
114 export BSD_SYSCALL_EXT_U
; \
115 ${SED} -e
"s/@LIB_NETWORK_EXT@/${LIB_NETWORK_EXT}/g" \
116 -e
"s/@LIB_NETWORK_EXT_U@/$${LIB_NETWORK_EXT_U}/g" \
117 -e
"s/@FORMAT_EXT@/${FORMAT_EXT}/g" \
118 -e
"s/@FORMAT_EXT_U@/$${FORMAT_EXT_U}/g" \
119 -e
"s/@DESC_EXT@/${DESC_EXT}/g" \
120 -e
"s/@DESC_EXT_U@/$${DESC_EXT_U}/g" \
121 -e
"s/@SYSCALL_EXT@/${SYSCALL_EXT}/g" \
122 -e
"s/@SYSCALL_EXT_U@/$${SYSCALL_EXT_U}/g" \
123 -e
"s/@BSD_SYSCALL_EXT@/${BSD_SYSCALL_EXT}/g" \
124 -e
"s/@BSD_SYSCALL_EXT_U@/$${BSD_SYSCALL_EXT_U}/g"
126 .SUFFIXES
: .
${LIB_NETWORK_EXT} .
${LIB_NETWORK_MAN_EXT} \
127 .
${FORMAT_EXT} .
${FORMAT_MAN_EXT} \
128 .
${DESC_EXT} .
${DESC_MAN_EXT}
129 .SUFFIXES
: .
${LIB_NETWORK_MAN_EXT} .
${LIB_NETWORK_CAT_EXT} \
130 .
${FORMAT_MAN_EXT} .
${FORMAT_CAT_EXT} \
131 .
${DESC_MAN_EXT} .
${DESC_CAT_EXT}
133 .
${LIB_NETWORK_EXT}.
${LIB_NETWORK_MAN_EXT}:
134 @echo
"$*.${LIB_NETWORK_EXT} -> $*.${LIB_NETWORK_MAN_EXT}"
135 @
${EXT_SED_CMD} <$*.
${LIB_NETWORK_EXT} >$*.
${LIB_NETWORK_MAN_EXT}
137 .
${FORMAT_EXT}.
${FORMAT_MAN_EXT}:
138 @echo
"$*.${FORMAT_EXT} -> $*.${FORMAT_MAN_EXT}"
139 @
${EXT_SED_CMD} <$*.
${FORMAT_EXT} >$*.
${FORMAT_MAN_EXT}
141 .
${DESC_EXT}.
${DESC_MAN_EXT}:
142 @echo
"$*.${DESC_EXT} -> $*.${DESC_MAN_EXT}"
143 @
${EXT_SED_CMD} <$*.
${DESC_EXT} >$*.
${DESC_MAN_EXT}
145 .
${LIB_NETWORK_MAN_EXT}.
${LIB_NETWORK_CAT_EXT}:
146 @echo
"$*.${LIB_NETWORK_MAN_EXT} -> $*.${LIB_NETWORK_CAT_EXT}"
147 @
${MANROFF} <$*.
${LIB_NETWORK_MAN_EXT} >$*.
${LIB_NETWORK_CAT_EXT}
149 .
${FORMAT_MAN_EXT}.
${FORMAT_CAT_EXT}:
150 @echo
"$*.${FORMAT_MAN_EXT} -> $*.${FORMAT_CAT_EXT}"
151 @
${MANROFF} <$*.
${FORMAT_MAN_EXT} >$*.
${FORMAT_CAT_EXT}
153 .
${DESC_MAN_EXT}.
${DESC_CAT_EXT}:
154 @echo
"$*.${DESC_MAN_EXT} -> $*.${DESC_CAT_EXT}"
155 @
${MANROFF} <$*.
${DESC_MAN_EXT} >$*.
${DESC_CAT_EXT}
157 OUTFILES
= ${LIB_NETWORK_OUT} ${FORMAT_OUT} ${DESC_OUT}
159 doc man
:: ${OUTFILES}
161 docclean manclean maintainer-clean
::
165 $(SHELL
) ${top_srcdir}/mkinstalldirs \
166 ${MANDIR}/man
${LIB_NETWORK_EXT} \
167 ${MANDIR}/cat
${LIB_NETWORK_EXT} \
168 ${MANDIR}/man
${FORMAT_EXT} \
169 ${MANDIR}/cat
${FORMAT_EXT} \
170 ${MANDIR}/man
${DESC_EXT} \
171 ${MANDIR}/cat
${DESC_EXT}
173 install:: doc
installdirs
174 @set
-x
; N
=${LIB_NETWORK_EXT}; for f in
${LIB_NETWORK_BASE}; do \
175 ${INSTALL_DATA} $${f}.
${LIB_NETWORK_MAN_EXT} \
176 ${MANDIR}/man
${LIB_NETWORK_EXT}/$${f}.
${LIB_NETWORK_EXT}; \
178 @set
-x
; N
=${LIB_NETWORK_EXT}; for f in
${LIB_NETWORK_BASE}; do \
179 ${INSTALL_DATA} $${f}.
${LIB_NETWORK_CAT_EXT} \
180 ${MANDIR}/cat
${LIB_NETWORK_EXT}/$${f}.
${LIB_NETWORK_EXT}; \
182 @set
-x
; N
=${FORMAT_EXT}; for f in
${FORMAT_BASE}; do \
183 ${INSTALL_DATA} $${f}.
${FORMAT_MAN_EXT} \
184 ${MANDIR}/man
${FORMAT_EXT}/$${f}.
${FORMAT_EXT}; \
186 @set
-x
; N
=${FORMAT_EXT}; for f in
${FORMAT_BASE}; do \
187 ${INSTALL_DATA} $${f}.
${FORMAT_CAT_EXT} \
188 ${MANDIR}/cat
${FORMAT_EXT}/$${f}.
${FORMAT_EXT}; \
190 @set
-x
; N
=${DESC_EXT}; for f in
${DESC_BASE}; do \
191 ${INSTALL_DATA} $${f}.
${DESC_MAN_EXT} \
192 ${MANDIR}/man
${DESC_EXT}/$${f}.
${DESC_EXT}; \
194 @set
-x
; N
=${DESC_EXT}; for f in
${DESC_BASE}; do \
195 ${INSTALL_DATA} $${f}.
${DESC_CAT_EXT} \
196 ${MANDIR}/cat
${DESC_EXT}/$${f}.
${DESC_EXT}; \