2000-08-01 05:57:57 +04:00
|
|
|
# $NetBSD: Makefile.inc,v 1.12 2000/08/01 01:57:57 enami Exp $
|
1999-01-13 11:18:44 +03:00
|
|
|
|
|
|
|
# Ross Harvey <ross@netbsd.org>
|
|
|
|
|
2000-03-08 18:39:48 +03:00
|
|
|
.include <bsd.obj.mk> # So we get /etc/mk.conf vars.
|
|
|
|
|
1999-01-13 11:18:44 +03:00
|
|
|
M?= ${.CURDIR:T}
|
|
|
|
V!= /bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh
|
|
|
|
V_S!= /bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh -s
|
|
|
|
|
|
|
|
MAIN= ${.CURDIR}/../common/main ${EXTRA}
|
|
|
|
TARG= INSTALL
|
1999-02-07 21:29:51 +03:00
|
|
|
TARGS= ${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
|
1999-12-08 06:57:29 +03:00
|
|
|
SRCS= ${MAIN} whatis contents hardware xfer prep install\
|
1999-01-13 11:18:44 +03:00
|
|
|
upgrade donations legal.common legal postinstall ../Makefile.inc\
|
|
|
|
${MERGED_SRCS}
|
1999-06-30 22:23:02 +04:00
|
|
|
ICMD= ${INSTALL} ${RENAME} ${PRESERVE} ${COPY} \
|
|
|
|
-o root -g wheel -m ${NONBINMODE}
|
1999-01-13 11:18:44 +03:00
|
|
|
|
|
|
|
PRESET= ${GFLAGS} -dV=$V -dV_S=${V_S} -dMACHINE=$M -d.CURDIR=${.CURDIR} -r$M=1
|
|
|
|
|
1999-12-08 01:33:49 +03:00
|
|
|
POST_PLAIN= -P-b -P-u -P-o
|
1999-01-13 11:18:44 +03:00
|
|
|
|
|
|
|
ARGS_PS= ${PRESET} -dformat=PostScript
|
2000-08-01 05:57:57 +04:00
|
|
|
ARGS_TXT= ${PRESET} -dformat=ASCII ${POST_PLAIN} -Tascii -mtty-char
|
1999-12-08 01:33:49 +03:00
|
|
|
ARGS_HTML= ${PRESET} -dformat=HTML ${POST_PLAIN} -Tlatin1 -ww
|
2000-08-01 05:57:57 +04:00
|
|
|
ARGS_MORE= ${PRESET} -dformat=more -P-h -Tascii -mtty-char
|
1999-01-13 11:18:44 +03:00
|
|
|
|
|
|
|
#
|
|
|
|
# For example...
|
|
|
|
#
|
|
|
|
# .if ri386 ...stuff...
|
|
|
|
# .Ss "Install notes for NetBSD/\*[MACHINE]"
|
|
|
|
#
|
|
|
|
|
|
|
|
CLEANFILES+=${TARGS}
|
|
|
|
|
|
|
|
.for i in ps txt html more
|
|
|
|
all: ${TARG}.$i
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
${TARG}.ps: ${SRCS}
|
|
|
|
groff ${ARGS_PS} -mdoc ${MAIN} > $@
|
|
|
|
|
|
|
|
${TARG}.txt: ${SRCS}
|
|
|
|
groff ${ARGS_TXT} -mdoc ${MAIN} > $@
|
|
|
|
|
|
|
|
${TARG}.html: ${SRCS}
|
|
|
|
groff ${ARGS_HTML} -mdoc2html ${MAIN} > $@
|
|
|
|
|
|
|
|
${TARG}.more: ${SRCS}
|
|
|
|
groff ${ARGS_MORE} -mdoc ${MAIN} > $@
|
|
|
|
|
|
|
|
echosrcs! ${SRCS}
|
|
|
|
@echo ${.ALLSRC}
|
|
|
|
|
1999-04-29 23:03:03 +04:00
|
|
|
echomore!
|
|
|
|
@echo ${.OBJDIR}/${TARG}.more
|
|
|
|
|
1999-06-30 22:23:02 +04:00
|
|
|
.ifndef RELEASEDIR
|
|
|
|
release:
|
|
|
|
@echo setenv RELEASEDIR first
|
|
|
|
@false
|
|
|
|
.else
|
|
|
|
release:
|
|
|
|
.for i in ${TARGS}
|
|
|
|
${ICMD} ${i} ${RELEASEDIR}/.
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
1999-01-13 11:18:44 +03:00
|
|
|
.PATH: ${.CURDIR}/../common
|
1999-03-06 14:31:51 +03:00
|
|
|
|
|
|
|
# make the "afterdepend" rule happy
|
|
|
|
.depend:
|
|
|
|
@touch $@
|