[BACK]Return to bsd.man.mk CVS log [TXT][DIR] Up to [local] / src / share / mk

Diff for /src/share/mk/bsd.man.mk between version 1.18 and 1.19

version 1.18, 2000/05/16 19:34:47 version 1.19, 2000/11/10 00:24:31
Line 3 
Line 3 
 #       @(#)bsd.man.mk  5.2 (Berkeley) 5/11/90  #       @(#)bsd.man.mk  5.2 (Berkeley) 5/11/90
   
 MANTARGET?=     cat  MANTARGET?=     cat
 NROFF?=         nroff -Tascii  NROFF?=         nroff
 TBL?=           tbl  TBL?=           tbl
   
 .if !target(.MAIN)  .if !target(.MAIN)
Line 15 
Line 15 
 .endif  .endif
   
 .SUFFIXES: .1 .2 .3 .3p .4 .5 .6 .7 .8 .9 .1tbl .2tbl .3tbl .4tbl .5tbl .6tbl \  .SUFFIXES: .1 .2 .3 .3p .4 .5 .6 .7 .8 .9 .1tbl .2tbl .3tbl .4tbl .5tbl .6tbl \
         .7tbl .8tbl .9tbl .cat1 .cat2 .cat3 .cat4 .cat5 .cat6 .cat7 .cat8 .cat9          .7tbl .8tbl .9tbl .cat1 .cat2 .cat3 .cat4 .cat5 .cat6 .cat7 .cat8 .cat9 \
           .ps1 .ps2 .ps3 .ps4 .ps5 .ps6 .ps7 .ps8 .ps9
   
 .9.cat9 .8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3p.cat3p .3.cat3 .2.cat2 .1.cat1:  .9.cat9 .8.cat8 .7.cat7 .6.cat6 .5.cat5 .4.cat4 .3p.cat3p .3.cat3 .2.cat2 .1.cat1:
         @echo "${NROFF} -mandoc ${.IMPSRC} > ${.TARGET}"          @echo "${NROFF} -Tascii -mandoc ${.IMPSRC} > ${.TARGET}"
         @${NROFF} -mandoc ${.IMPSRC} > ${.TARGET} || (rm -f ${.TARGET}; false)          @${NROFF} -Tascii -mandoc ${.IMPSRC} > ${.TARGET} || (rm -f ${.TARGET}; false)
   
 .9tbl.cat9 .8tbl.cat8 .7tbl.cat7 .6tbl.cat6 .5tbl.cat5 .4tbl.cat4 .3tbl.cat3 \  .9tbl.cat9 .8tbl.cat8 .7tbl.cat7 .6tbl.cat6 .5tbl.cat5 .4tbl.cat4 .3tbl.cat3 \
 .2tbl.cat2 .1tbl.cat1:  .2tbl.cat2 .1tbl.cat1:
         @echo "${TBL} ${.IMPSRC} | ${NROFF} -mandoc > ${.TARGET}"          @echo "${TBL} ${.IMPSRC} | ${NROFF} -Tascii -mandoc > ${.TARGET}"
         @${TBL} ${.IMPSRC} | ${NROFF} -mandoc > ${.TARGET} || (rm -f ${.TARGET}; false)          @${TBL} ${.IMPSRC} | ${NROFF}  -Tascii -mandoc > ${.TARGET} || \
               (rm -f ${.TARGET}; false)
   
   .9.ps9 .8.ps8 .7.ps7 .6.ps6 .5.ps5 .4.ps4 .3p.ps3p .3.ps3 .2.ps2 .1.ps1:
           @echo "nroff -Tps -mandoc ${.IMPSRC} > ${.TARGET}"
           @nroff -Tps -mandoc ${.IMPSRC} > ${.TARGET} || (rm -f ${.TARGET}; false)
   
   .9tbl.ps9 .8tbl.ps8 .7tbl.ps7 .6tbl.ps6 .5tbl.ps5 .4tbl.ps4 .3tbl.ps3 \
   .2tbl.ps2 .1tbl.ps1:
           @echo "${TBL} ${.IMPSRC} | nroff -Tps -mandoc > ${.TARGET}"
           @${TBL} ${.IMPSRC} | nroff -Tps -mandoc > ${.TARGET} || (rm -f ${.TARGET}; false)
   
 .if defined(MAN) && !empty(MAN) && !defined(MANALL)  .if defined(MAN) && !empty(MAN) && !defined(MANALL)
   
 MANALL= ${MAN:S/.1$/.cat1/g:S/.2$/.cat2/g:S/.3$/.cat3/g:S/.3p$/.cat3p/g:S/.4$/.cat4/g:S/.5$/.cat5/g:S/.6$/.cat6/g:S/.7$/.cat7/g:S/.8$/.cat8/g:S/.9$/.cat9/g:S/.1tbl$/.cat1/g:S/.2tbl$/.cat2/g:S/.3tbl$/.cat3/g:S/.4tbl$/.cat4/g:S/.5tbl$/.cat5/g:S/.6tbl$/.cat6/g:S/.7tbl$/.cat7/g:S/.8tbl$/.cat8/g:S/.9tbl$/.cat9/g}  MANALL= ${MAN:S/.1$/.cat1/g:S/.2$/.cat2/g:S/.3$/.cat3/g:S/.3p$/.cat3p/g:S/.4$/.cat4/g:S/.5$/.cat5/g:S/.6$/.cat6/g:S/.7$/.cat7/g:S/.8$/.cat8/g:S/.9$/.cat9/g:S/.1tbl$/.cat1/g:S/.2tbl$/.cat2/g:S/.3tbl$/.cat3/g:S/.4tbl$/.cat4/g:S/.5tbl$/.cat5/g:S/.6tbl$/.cat6/g:S/.7tbl$/.cat7/g:S/.8tbl$/.cat8/g:S/.9tbl$/.cat9/g}
   
   .if defined(MANPS)
   
   PSALL= ${MAN:S/.1$/.ps1/g:S/.2$/.ps2/g:S/.3$/.ps3/g:S/.3p$/.ps3p/g:S/.4$/.ps4/g:S/.5$/.ps5/g:S/.6$/.ps6/g:S/.7$/.ps7/g:S/.8$/.ps8/g:S/.9$/.ps9/g:S/.1tbl$/.ps1/g:S/.2tbl$/.ps2/g:S/.3tbl$/.ps3/g:S/.4tbl$/.ps4/g:S/.5tbl$/.ps5/g:S/.6tbl$/.ps6/g:S/.7tbl$/.ps7/g:S/.8tbl$/.ps8/g:S/.9tbl$/.ps9/g}
   
 .endif  .endif
   
   .endif
   
 MINSTALL=       ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}  MINSTALL=       ${INSTALL} ${INSTALL_COPY} -o ${MANOWN} -g ${MANGRP} -m ${MANMODE}
 .if defined(MANZ)  .if defined(MANZ)
 # chown and chmod are done afterward automatically  # chown and chmod are done afterward automatically
Line 71 
Line 90 
                 done; \                  done; \
         done          done
 .endif  .endif
   .if defined(PSALL)
           @for page in ${PSALL}; do \
                   set -- ${MANSUBDIR}; \
                   subdir=$$1; \
                   dir=${DESTDIR}${PSDIR}$${page##*.ps}; \
                   base=$${page##*/}; \
                   instpage=$${dir}$${subdir}/$${base%.*}.ps${MCOMPRESSSUFFIX}; \
                   if [ X"${MCOMPRESS}" = X ]; then \
                           echo ${MINSTALL} $$page $$instpage; \
                           ${MINSTALL} $$page $$instpage; \
                   else \
                           rm -f $$instpage; \
                           echo ${MCOMPRESS} $$page \> $$instpage; \
                           ${MCOMPRESS} $$page > $$instpage; \
                           chown ${PSOWN}:${PSGRP} $$instpage; \
                           chmod ${PSMODE} $$instpage; \
                   fi; \
                   while test $$# -ge 2; do \
                           shift; \
                           extra=$${dir}$$1/$${base%.*}.ps${MCOMPRESSSUFFIX}; \
                           echo $$extra -\> $$instpage; \
                           ln -f $$instpage $$extra; \
                   done; \
           done
   .endif
 .if defined(MLINKS) && !empty(MLINKS)  .if defined(MLINKS) && !empty(MLINKS)
 .  for _subdir in ${MANSUBDIR}  .  for _subdir in ${MANSUBDIR}
         @set ${MLINKS}; \          @set ${MLINKS}; \
Line 90 
Line 134 
 .  endfor  .  endfor
 .endif  .endif
   
 .if defined(MANALL) && !defined(MANLOCALBUILD)  .if (defined(MANALL) || defined(PSALL)) && !defined(MANLOCALBUILD)
 all: ${MANALL}  all: ${MANALL} ${PSALL}
   
 cleandir: cleanman  cleandir: cleanman
 cleanman:  cleanman:
         rm -f ${MANALL}          rm -f ${MANALL} ${PSALL}
 .endif  .endif

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.19