Deleted Added
full compact
bsd.info.mk (94940) bsd.info.mk (95306)
1# $FreeBSD: head/share/mk/bsd.info.mk 94940 2002-04-17 13:49:29Z ru $
1# $FreeBSD: head/share/mk/bsd.info.mk 95306 2002-04-23 09:03:56Z ru $
2#
3# The include file <bsd.info.mk> handles installing GNU (tech)info files.
4# Texinfo is a documentation system that uses a single source
5# file to produce both on-line information and printed output.
6#
7#
8# +++ variables +++
9#

--- 57 unchanged lines hidden (view full) ---

67#
68# distribute:
69# This is a variant of install, which will
70# put the stuff into the right "distribution".
71#
72# install:
73# Install the info files.
74#
2#
3# The include file <bsd.info.mk> handles installing GNU (tech)info files.
4# Texinfo is a documentation system that uses a single source
5# file to produce both on-line information and printed output.
6#
7#
8# +++ variables +++
9#

--- 57 unchanged lines hidden (view full) ---

67#
68# distribute:
69# This is a variant of install, which will
70# put the stuff into the right "distribution".
71#
72# install:
73# Install the info files.
74#
75# maninstall:
76# Dummy target, do nothing.
77#
75#
78#
79# bsd.obj.mk: cleandir and obj
80
81.include <bsd.init.mk>
82
83MAKEINFO?= makeinfo
84MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression
85SRCDIR?= ${.CURDIR}
86INFODIRFILE?= dir

--- 45 unchanged lines hidden (view full) ---

132IFILENS+= ${INFO:S/$/.${_f}/}
133.endfor
134
135.if !defined(NOINFO)
136CLEANFILES+= ${IFILENS}
137.if !defined(NOINFOCOMPRESS)
138CLEANFILES+= ${IFILENS:S/$/${ICOMPRESS_EXT}/}
139IFILES= ${IFILENS:S/$/${ICOMPRESS_EXT}/:S/.html${ICOMPRESS_EXT}/.html/}
76# bsd.obj.mk: cleandir and obj
77
78.include <bsd.init.mk>
79
80MAKEINFO?= makeinfo
81MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression
82SRCDIR?= ${.CURDIR}
83INFODIRFILE?= dir

--- 45 unchanged lines hidden (view full) ---

129IFILENS+= ${INFO:S/$/.${_f}/}
130.endfor
131
132.if !defined(NOINFO)
133CLEANFILES+= ${IFILENS}
134.if !defined(NOINFOCOMPRESS)
135CLEANFILES+= ${IFILENS:S/$/${ICOMPRESS_EXT}/}
136IFILES= ${IFILENS:S/$/${ICOMPRESS_EXT}/:S/.html${ICOMPRESS_EXT}/.html/}
140all: ${IFILES} _SUBDIR
137all: ${IFILES}
141.else
142IFILES= ${IFILENS}
138.else
139IFILES= ${IFILENS}
143all: ${IFILES} _SUBDIR
140all: ${IFILES}
144.endif
145.else
146all:
147.endif
148
149.for x in ${IFILENS}
150${x:S/$/${ICOMPRESS_EXT}/}: ${x}
151 ${ICOMPRESS_CMD} ${.ALLSRC} > ${.TARGET}

--- 8 unchanged lines hidden (view full) ---

160 ${x}.info ${DESTDIR}${INFODIR}/${INFODIRFILE}
161.endfor
162
163.PHONY: ${INSTALLINFODIRS}
164
165DISTRIBUTION?= bin
166
167.if !target(distribute)
141.endif
142.else
143all:
144.endif
145
146.for x in ${IFILENS}
147${x:S/$/${ICOMPRESS_EXT}/}: ${x}
148 ${ICOMPRESS_CMD} ${.ALLSRC} > ${.TARGET}

--- 8 unchanged lines hidden (view full) ---

157 ${x}.info ${DESTDIR}${INFODIR}/${INFODIRFILE}
158.endfor
159
160.PHONY: ${INSTALLINFODIRS}
161
162DISTRIBUTION?= bin
163
164.if !target(distribute)
168distribute: _SUBDIR
165distribute:
169.for dist in ${DISTRIBUTION}
170 cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
171.endfor
172.endif
173
174.if defined(SRCS)
175CLEANFILES+= ${INFO}.texi
176${INFO}.texi: ${SRCS}

--- 8 unchanged lines hidden (view full) ---

185CLEANFILES+= ${INFO:S/$/-la.texi/}
186.endif
187
188.if ${FORMATS:Mhtml}
189CLEANFILES+= ${INFO:S/$/.info.*.html/} ${INFO:S/$/.info/}
190.endif
191
192.if !defined(NOINFO) && defined(INFO)
166.for dist in ${DISTRIBUTION}
167 cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${dist} SHARED=copies
168.endfor
169.endif
170
171.if defined(SRCS)
172CLEANFILES+= ${INFO}.texi
173${INFO}.texi: ${SRCS}

--- 8 unchanged lines hidden (view full) ---

182CLEANFILES+= ${INFO:S/$/-la.texi/}
183.endif
184
185.if ${FORMATS:Mhtml}
186CLEANFILES+= ${INFO:S/$/.info.*.html/} ${INFO:S/$/.info/}
187.endif
188
189.if !defined(NOINFO) && defined(INFO)
193install: ${INSTALLINFODIRS} _SUBDIR
190install: ${INSTALLINFODIRS}
194.if ${IFILES:N*.html}
195 ${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
196 ${IFILES:N*.html} ${DESTDIR}${INFODIR}
197.endif
198.if ${FORMATS:Mhtml}
199 ${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
200 ${INFO:S/$/.info.*.html/} ${DESTDIR}${INFODIR}
201.endif
202.else
203# The indirection in the following is to avoid the null install rule
204# "install:" from being overridden by the implicit .sh rule if there
205# happens to be a source file named install.sh. This assumes that there
206# is no source file named __null_install.sh.
207install: __null_install
208__null_install:
209.endif
210
191.if ${IFILES:N*.html}
192 ${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
193 ${IFILES:N*.html} ${DESTDIR}${INFODIR}
194.endif
195.if ${FORMATS:Mhtml}
196 ${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
197 ${INFO:S/$/.info.*.html/} ${DESTDIR}${INFODIR}
198.endif
199.else
200# The indirection in the following is to avoid the null install rule
201# "install:" from being overridden by the implicit .sh rule if there
202# happens to be a source file named install.sh. This assumes that there
203# is no source file named __null_install.sh.
204install: __null_install
205__null_install:
206.endif
207
211.if !target(all-man)
212all-man: _SUBDIR
213.endif
214
215.if !target(maninstall)
216maninstall: _SUBDIR
217.endif
218
219.if !target(regress)
220regress:
221.endif
222
223.include <bsd.obj.mk>
208.include <bsd.obj.mk>