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