mkfile 946 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. </$objtype/mkfile
  2. TARG=\
  3. 9pcon\
  4. accupoint\
  5. acidleak\
  6. apm\
  7. astarld\
  8. cddb\
  9. clog\
  10. consolefs\
  11. data2s\
  12. depend\
  13. disksim\
  14. lines\
  15. listen\
  16. listen1\
  17. mklatinkbd\
  18. ms2\
  19. mswordstrings\
  20. mouse\
  21. nfsmount\
  22. olefs\
  23. pcmcia\
  24. portmap\
  25. rdwr\
  26. reboot\
  27. searchfs\
  28. stub\
  29. timesync\
  30. trampoline\
  31. typepasswd\
  32. write\
  33. BIN=/$objtype/bin/aux
  34. UPDATE=\
  35. mkfile\
  36. $HFILES\
  37. ${OFILES:%.$O=%.c}\
  38. ${TARG:%=%.c}\
  39. </sys/src/cmd/mkmany
  40. DIRS=mnihongo\
  41. flashfs\
  42. na\
  43. vga
  44. all:V: $DIRS
  45. $DIRS:V:
  46. for (i in $DIRS) @{
  47. echo mk $i
  48. cd $i
  49. mk all
  50. }
  51. install:V: installdirs
  52. nuke:V: nukedirs
  53. installdirs:V:
  54. for (i in $DIRS) @{
  55. echo mk $i
  56. cd $i
  57. mk install
  58. }
  59. clean:V:
  60. for (i in $DIRS) @{
  61. echo clean $i
  62. cd $i
  63. mk clean
  64. }
  65. rm -f [$OS].* *.[$OS]
  66. nukedirs:V:
  67. for (i in $DIRS) @{
  68. echo nuke $i
  69. cd $i
  70. mk nuke
  71. }
  72. update:V:
  73. update $UPDATEFLAGS $UPDATE
  74. for (i in $DIRS) @{
  75. echo update $i
  76. cd $i
  77. mk 'UPDATEFLAGS='$"UPDATEFLAGS update
  78. }