mkfile 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244
  1. < /sys/doc/fonts
  2. NPROC = 1
  3. FILES = \
  4. title.ps \
  5. trademarks.ps \
  6. contents.ps \
  7. 9.ps \
  8. acid.ps \
  9. acidpaper.ps \
  10. ape.ps \
  11. asm.ps \
  12. auth.ps \
  13. comp.ps \
  14. compiler.ps \
  15. lexnames.ps \
  16. libmach.ps \
  17. lp.ps \
  18. mk.ps \
  19. mkfiles.ps \
  20. names.ps \
  21. plumb.ps \
  22. port.ps \
  23. rc.ps \
  24. sleep.ps \
  25. spin.ps \
  26. troff.ps \
  27. utf.ps \
  28. colophon.ps \
  29. release4.ps \
  30. prog4.ps\
  31. DIRS = \
  32. 8½ \
  33. acme \
  34. fs \
  35. venti \
  36. il \
  37. net \
  38. sam \
  39. all:V: dirs
  40. print:V: \
  41. title.ps \
  42. trademarks.ps \
  43. contents.ps\
  44. 9.ps \
  45. names.ps \
  46. net/net.ps \
  47. auth.ps \
  48. comp.ps \
  49. prog4.ps \
  50. ape.ps \
  51. acidpaper.ps \
  52. acid.ps \
  53. mk.ps \
  54. mkfiles.ps \
  55. asm.ps \
  56. 8½/8½.ps \
  57. rc.ps \
  58. sam/sam.ps \
  59. acme/acme.ps \
  60. plumb.ps \
  61. utf.ps \
  62. compiler.ps \
  63. libmach.ps \
  64. fs/fs.ps \
  65. venti/venti.ps \
  66. il/il.ps \
  67. sleep.ps \
  68. lexnames.ps \
  69. lp.ps \
  70. troff.ps \
  71. spin.ps \
  72. port.ps \
  73. colophon.ps
  74. lp -dfn -H -i0 $prereq
  75. html:V: \
  76. 9.html \
  77. names.html \
  78. net/net.html \
  79. auth.html \
  80. comp.html \
  81. prog4.html \
  82. ape.html \
  83. acidpaper.html \
  84. acid.html \
  85. mk.html \
  86. mkfiles.html \
  87. asm.html \
  88. 8½/8½.html \
  89. rc.html \
  90. sam/sam.html \
  91. acme/acme.html \
  92. plumb.html \
  93. utf.html \
  94. compiler.html \
  95. libmach.html \
  96. fs/fs.html \
  97. il/il.html \
  98. sleep.html \
  99. lexnames.html \
  100. lp.html \
  101. troff.html \
  102. spin.html \
  103. port.html \
  104. release4.html
  105. cp index.htm index.html
  106. dirs:V: $FILES $DIRS
  107. for(i in $DIRS) @{
  108. cd $i
  109. mk
  110. }
  111. title.ps:D: title
  112. troff $prereq | lp -dstdout > $target
  113. cleanps $target
  114. contents.ps:D: contents.ms
  115. { echo $FONTS; cat $prereq } | troff -ms -mnihongo | lp -dstdout > $target
  116. cleanps $target
  117. trademarks.ps:D: /sys/lib/man/trademarks
  118. troff $prereq | lp -dstdout > $target
  119. cleanps $target
  120. colophon.ps:D: /sys/lib/man/colophon
  121. troff $prereq | lp -dstdout > $target
  122. cleanps $target
  123. %.page:D: %.ps
  124. page -w $stem.ps
  125. %.ps:D: %.ms
  126. { echo $FONTS; cat $stem.ms } | tbl | troff -ms | lp -dstdout > $target
  127. cleanps $target
  128. %.trout:D: %.ms
  129. { echo $FONTS; cat $stem.ms } | tbl | troff -ms > $stem.trout
  130. troff.trout:D: troff.ms
  131. { echo $FONTS; cat $prereq } | tbl | eqn | troff -ms > $target
  132. troff.ps:D: troff.ms
  133. echo this gets some scary-looking errors, but they''''re fine
  134. { echo $FONTS; cat $prereq } | tbl | eqn | troff -ms | lp -dstdout > $target
  135. cleanps $target
  136. fossil.ps:D: fossil.ms
  137. { echo $FONTS; cat $prereq } | pic | troff -ms | lp -dstdout >$target
  138. cleanps $target
  139. auth.ps:D: auth.ms
  140. { echo $FONTS; cat $prereq } | pic | tbl | eqn | troff -ms | lp -dstdout > $target
  141. cleanps $target
  142. plumb.ps:D: plumb.ms
  143. { echo $FONTS; cat $prereq } | pic | troff -ms | lp -dstdout > $target
  144. cleanps $target
  145. comp.ps:D: comp.ms
  146. { echo $FONTS; cat $prereq } | tbl | troff -ms -mnihongo | lp -dstdout > $target
  147. cleanps $target
  148. utf.ps:D: utf.ms
  149. { echo $FONTS; cat $prereq } | tbl | troff -ms -mnihongo | lp -dstdout > $target
  150. cleanps $target
  151. 9.ps:D: 9.ms network.pic
  152. { echo $FONTS; cat 9.ms } | tbl | pic | troff -ms -mnihongo | lp -dstdout > $target
  153. cleanps $target
  154. 9.trout:D: 9.ms network.pic
  155. { echo $FONTS; cat 9.ms } | tbl | pic | troff -ms -mnihongo > $target
  156. spin.ps:D: spin.ms
  157. { echo $FONTS; cat $prereq } | eqn | tbl | troff -ms | lp -dstdout > $target
  158. cleanps $target
  159. %.html:D: %.ms
  160. { echo $FONTS; cat $stem.ms } | tbl | ms2html > $target
  161. troff.html:D: troff.ms
  162. { echo $FONTS; cat $prereq } | tbl | eqn | ms2html > $target
  163. plumb.html:D: plumb.ms
  164. { echo $FONTS; cat $prereq } | pic | ms2html > $target
  165. auth.html:D: auth.ms
  166. { echo $FONTS; cat $prereq } | pic |eqn | tbl | ms2html > $target
  167. comp.html:D: comp.ms
  168. { echo $FONTS; cat $prereq } | tbl | ms2html > $target
  169. utf.html:D: utf.ms
  170. { echo $FONTS; cat $prereq } | tbl | ms2html > $target
  171. 9.html:D: 9.ms network.pic
  172. { echo $FONTS; cat 9.ms } | tbl | pic | ms2html > $target
  173. spin.html:D: spin.ms
  174. { echo $FONTS; cat $prereq } | eqn | tbl | ms2html > $target
  175. gfx.html:D: gfx.ms
  176. { echo $FONTS; cat $prereq } | tbl | pic | ms2html > $target
  177. fs/fs.html:
  178. cd fs
  179. mk fs.html
  180. net/net.html:
  181. cd net
  182. mk net.html
  183. sam/sam.html:
  184. cd sam
  185. mk sam.html
  186. acme/acme.html:
  187. cd acme
  188. mk acme.html
  189. venti/venti.html:
  190. cd venti
  191. mk venti.html
  192. il/il.html:
  193. cd il
  194. mk il.html
  195. release4.html: release4.ms
  196. # remove all those extra blank lines
  197. { echo $FONTS; cat release4.ms } | tbl | ms2html | uniq > $target
  198. %.pdf: %.ps
  199. { cat docfonts $stem.ps } >_$stem.ps
  200. distill _$stem.ps
  201. mv _$stem.pdf $stem.pdf
  202. %.all:V:
  203. mk $stem.ps $stem.pdf $stem.html