1# Changes made in this directory are invisible to the 2# external web server. To publish changed documents 3# to the external web server, mk install or name.install 4# To publish changed ps/pdf files, see the install rule. 5 6< /sys/doc/fonts 7NPROC = 1 8 9ALL=\ 10 title\ 11 trademarks\ 12 contents\ 13 9\ 14 names\ 15 net/net\ 16 auth\ 17 comp\ 18 prog4\ 19 ape\ 20 acidpaper\ 21 acid\ 22 mk\ 23 mkfiles\ 24 asm\ 25 8½/8½\ 26 rc\ 27 sam/sam\ 28 acme/acme\ 29 plumb\ 30 utf\ 31 compiler\ 32 libmach\ 33 fs/fs\ 34 venti/venti\ 35 il/il\ 36 lexnames\ 37 sleep\ 38 lp\ 39 troff\ 40 spin\ 41 port\ 42 colophon\ 43 44ALLPS=${ALL:%=%.ps} 45HTML=${ALL:%=%.html} release3.html release4.html 46FILES=`{mkfilelist $ALL} 47DIRS=`{mkdirlist $ALL} 48NAMES=$FILES $DIRS 49 50all:V: ${FILES:%=%.ps} dirs 51 52dirs:V: 53 for(i in $DIRS) @{ 54 cd $i 55 mk 56 } 57 58print:V: $ALLPS 59 lp -dfn -H -i0 $prereq 60 61title.ps:D: title 62 troff $prereq | lp -dstdout > $target 63 cleanps $target 64 65trademarks.ps:D: /sys/lib/man/trademarks 66 troff $prereq | lp -dstdout > $target 67 cleanps $target 68 69colophon.ps:D: /sys/lib/man/colophon 70 troff $prereq | lp -dstdout > $target 71 cleanps $target 72 73# troff gets some scary-looking errors but they're okay 74%.ps:D: %.ms 75 mac=(-ms) 76 if(~ $stem comp utf 9 contents) mac=(-ms -mnihongo) 77 { echo $FONTS; cat $stem.ms } | pic | tbl | eqn | 78 troff $mac | lp -dstdout > $target 79 cleanps $target 80 81%.trout:D: %.ms 82 mac=(-ms) 83 if(~ $stem comp utf 9 contents) mac=($mac -mnihongo) 84 { echo $FONTS; cat $stem.ms } | pic | tbl | eqn | 85 troff $mac > $target 86 87html:V: $HTML 88 899.trout 9.ps 9.html: network.pic 90 91%.html: /$objtype/bin/htmlroff /sys/lib/tmac/tmac.s 92 93index.html: contents.html 94 cp contents.html index.html 95 96&.html:D: &.ms 97 pic $stem.ms | tbl | eqn | htmlroff -ms -mhtml >$target 98 99^(8½|acme|fs|il|net|sam|venti)/([^/]*\.(pdf|ps|html))'$':R: 100 cd $stem1 101 mk $stem2 102 103^(8½|acme|fs|il|net|sam|venti)\.html'$':R: \1/\1.html 104 cp $stem1/$stem1.html . 105 106%.pdf: %.ps 107 { cat docfonts $stem.ps } >_$stem.ps 108 distill _$stem.ps 109 mv _$stem.pdf $stem.pdf 110 111%.all:V: 112 mk $stem.ps $stem.pdf $stem.html 113 114%.install:V: %.html 115 9fs other 116 files=`{ls $stem.html $stem^*.png $stem/*.png $stem/*.html >[2]/dev/null} 117 whatis stem 118 whatis files 119 cp $files /n/other/crp/sources.copy/sys/doc 120 121%.page:V: %.ps 122 page -w $stem.ps 123 124install:V: ${NAMES:%=%.install} release4.install release3.install 125 126# ignore these 127IGNHTML=title trademarks colophon troff 128IGN=${IGNHTML:%=%.html} ${IGNHTML:%=%.install} 129 130$IGN:QV: 131 # nothing 132 133