mkfile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. PDF=${ALL:%=%.pdf} release3.pdf release4.pdf
  44. FILES=`{mkfilelist $ALL}
  45. DIRS=`{mkdirlist $ALL}
  46. NAMES=$FILES $DIRS
  47. all:V: ${FILES:%=%.ps} dirs
  48. dirs:V:
  49. for(i in $DIRS) @{
  50. cd $i
  51. mk
  52. }
  53. print:V: $ALLPS
  54. lp -H -i0 $prereq
  55. title.ps:D: title
  56. troff $prereq | lp -dstdout > $target
  57. cleanps $target
  58. trademarks.ps:D: /sys/lib/man/trademarks
  59. troff $prereq | lp -dstdout > $target
  60. cleanps $target
  61. colophon.ps:D: /sys/lib/man/colophon
  62. troff $prereq | lp -dstdout > $target
  63. cleanps $target
  64. # troff gets some scary-looking errors but they're okay
  65. %.ps:D: %.ms
  66. mac=(-ms)
  67. if(~ $stem comp utf 9 contents) mac=(-ms -mnihongo)
  68. { echo $FONTS; cat $stem.ms } | pic | tbl | eqn |
  69. troff $mac | lp -dstdout > $target
  70. cleanps $target
  71. %.trout:D: %.ms
  72. mac=(-ms)
  73. if(~ $stem comp utf 9 contents) mac=($mac -mnihongo)
  74. { echo $FONTS; cat $stem.ms } | pic | tbl | eqn |
  75. troff $mac > $target
  76. html:V: $HTML
  77. 9.trout 9.ps 9.html: network.pic
  78. %.html: /$objtype/bin/htmlroff /sys/lib/tmac/tmac.s
  79. index.html: contents.html
  80. cp contents.html index.html
  81. &.html:D: &.ms
  82. pic $stem.ms | tbl | eqn | htmlroff -ms -mhtml >$target
  83. pdf:V: $PDF
  84. ^(8½|acme|fs|il|net|sam|venti)/([^/]*\.(pdf|ps|html))'$':R:
  85. cd $stem1
  86. mk $stem2
  87. ^(8½|acme|fs|il|net|sam|venti)\.html'$':R: \1/\1.html
  88. cp $stem1/$stem1.html .
  89. %.pdf: %.ps
  90. cat docfonts $stem.ps >_$stem.ps
  91. # distill _$stem.ps && mv _$stem.pdf $stem.pdf
  92. ps2pdf _$stem.ps $stem.pdf && rm -f _$stem.ps
  93. %.all:V:
  94. mk $stem.ps $stem.pdf $stem.html
  95. %.install:V: %.html
  96. 9fs other
  97. files=`{ls $stem.html $stem^*.png $stem/*.png $stem/*.html >[2]/dev/null}
  98. whatis stem
  99. whatis files
  100. cp $files /n/other/crp/sources.copy/sys/doc
  101. %.page:V: %.ps
  102. page -w $stem.ps
  103. install:V: ${NAMES:%=%.install} release4.install release3.install
  104. # ignore these
  105. IGNHTML=title trademarks colophon troff
  106. IGN=${IGNHTML:%=%.html} ${IGNHTML:%=%.install}
  107. $IGN:QV:
  108. # nothing