Home | History | Annotate | Line # | Download | only in notes
Makefile.inc revision 1.4.2.2
      1 #	$NetBSD: Makefile.inc,v 1.4.2.2 2000/02/10 21:39:30 he Exp $
      2 
      3 # Ross Harvey <ross@netbsd.org>
      4 
      5 M?=	${.CURDIR:T}
      6 V!=	/bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh
      7 V_S!=	/bin/sh ${.CURDIR}/../../../sys/conf/osrelease.sh -s
      8 
      9 MAIN=	${.CURDIR}/../common/main ${EXTRA}
     10 TARG=	INSTALL
     11 TARGS=	${TARG}.ps ${TARG}.txt ${TARG}.html ${TARG}.more
     12 SRCS=	${MAIN} whatis contents hardware xfer prep install\
     13 	upgrade donations legal.common legal postinstall ../Makefile.inc\
     14 	${MERGED_SRCS}
     15 
     16 PRESET=	${GFLAGS} -dV=$V -dV_S=${V_S} -dMACHINE=$M -d.CURDIR=${.CURDIR} -r$M=1
     17 
     18 POST_PLAIN= -P-b -P-u -P-o -Tascii
     19 
     20 ARGS_PS=	${PRESET} -dformat=PostScript
     21 ARGS_TXT=	${PRESET} -dformat=ASCII ${POST_PLAIN}
     22 ARGS_HTML=	${PRESET} -dformat=HTML  ${POST_PLAIN} -ww
     23 ARGS_MORE=	${PRESET} -dformat=more -P-h -Tascii
     24 
     25 #
     26 # For example...
     27 #
     28 #	.if ri386 ...stuff...
     29 #	.Ss "Install notes for NetBSD/\*[MACHINE]"
     30 #
     31 
     32 CLEANFILES+=${TARGS}
     33 
     34 .for i in ps txt html more
     35 all: ${TARG}.$i
     36 .endfor
     37 
     38 ${TARG}.ps: ${SRCS}
     39 	groff ${ARGS_PS}   -mdoc      ${MAIN} > $@
     40 
     41 ${TARG}.txt: ${SRCS}
     42 	groff ${ARGS_TXT}  -mdoc      ${MAIN} > $@
     43 
     44 ${TARG}.html: ${SRCS}
     45 	groff ${ARGS_HTML} -mdoc2html ${MAIN} > $@
     46 
     47 ${TARG}.more: ${SRCS}
     48 	groff ${ARGS_MORE} -mdoc      ${MAIN} > $@
     49 
     50 echosrcs! ${SRCS}
     51 	@echo ${.ALLSRC}
     52 
     53 echomore!
     54 	@echo ${.OBJDIR}/${TARG}.more
     55 
     56 .PATH: ${.CURDIR}/../common
     57 
     58 # make the "afterdepend" rule happy
     59 .depend:
     60 	@touch $@
     61