mkfile 2.3 KB

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