mkfile 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  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. %.ps:D: %.ms
  124. { echo $FONTS; cat $stem.ms } | tbl | troff -ms | lp -dstdout > $target
  125. cleanps $target
  126. %.trout:D: %.ms
  127. { echo $FONTS; cat $stem.ms } | tbl | troff -ms > $stem.trout
  128. troff.trout:D: troff.ms
  129. { echo $FONTS; cat $prereq } | tbl | eqn | troff -ms > $target
  130. troff.ps:D: troff.ms
  131. echo this gets some scary-looking errors, but they''''re fine
  132. { echo $FONTS; cat $prereq } | tbl | eqn | troff -ms | lp -dstdout > $target
  133. cleanps $target
  134. auth.ps:D: auth.ms
  135. { echo $FONTS; cat $prereq } | pic | tbl | eqn | troff -ms | lp -dstdout > $target
  136. cleanps $target
  137. plumb.ps:D: plumb.ms
  138. { echo $FONTS; cat $prereq } | pic | troff -ms | lp -dstdout > $target
  139. cleanps $target
  140. comp.ps:D: comp.ms
  141. { echo $FONTS; cat $prereq } | tbl | troff -ms -mnihongo | lp -dstdout > $target
  142. cleanps $target
  143. utf.ps:D: utf.ms
  144. { echo $FONTS; cat $prereq } | tbl | troff -ms -mnihongo | lp -dstdout > $target
  145. cleanps $target
  146. 9.ps:D: 9.ms network.pic
  147. { echo $FONTS; cat 9.ms } | tbl | pic | troff -ms -mnihongo | lp -dstdout > $target
  148. cleanps $target
  149. 9.trout:D: 9.ms network.pic
  150. { echo $FONTS; cat 9.ms } | tbl | pic | troff -ms -mnihongo > $target
  151. spin.ps:D: spin.ms
  152. { echo $FONTS; cat $prereq } | eqn | tbl | troff -ms | lp -dstdout > $target
  153. cleanps $target
  154. %.html:D: %.ms
  155. { echo $FONTS; cat $stem.ms } | tbl | ms2html > $target
  156. troff.html:D: troff.ms
  157. { echo $FONTS; cat $prereq } | tbl | eqn | ms2html > $target
  158. plumb.html:D: plumb.ms
  159. { echo $FONTS; cat $prereq } | pic | ms2html > $target
  160. auth.html:D: auth.ms
  161. { echo $FONTS; cat $prereq } | pic |eqn | tbl | ms2html > $target
  162. comp.html:D: comp.ms
  163. { echo $FONTS; cat $prereq } | tbl | ms2html > $target
  164. utf.html:D: utf.ms
  165. { echo $FONTS; cat $prereq } | tbl | ms2html > $target
  166. 9.html:D: 9.ms network.pic
  167. { echo $FONTS; cat 9.ms } | tbl | pic | ms2html > $target
  168. spin.html:D: spin.ms
  169. { echo $FONTS; cat $prereq } | eqn | tbl | ms2html > $target
  170. gfx.html:D: gfx.ms
  171. { echo $FONTS; cat $prereq } | tbl | pic | ms2html > $target
  172. fs/fs.html:
  173. cd fs
  174. mk fs.html
  175. net/net.html:
  176. cd net
  177. mk net.html
  178. sam/sam.html:
  179. cd sam
  180. mk sam.html
  181. acme/acme.html:
  182. cd acme
  183. mk acme.html
  184. venti/venti.html:
  185. cd venti
  186. mk venti.html
  187. il/il.html:
  188. cd il
  189. mk il.html
  190. release4.html: release4.ms
  191. # remove all those extra blank lines
  192. { echo $FONTS; cat release4.ms } | tbl | ms2html | uniq > $target
  193. %.pdf: %.ps
  194. { cat docfonts $stem.ps } >_$stem.ps
  195. distill _$stem.ps
  196. mv _$stem.pdf $stem.pdf
  197. %.all:V:
  198. mk $stem.ps $stem.pdf $stem.html