mkfile 968 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  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. msexceltables\
  20. mswordstrings\
  21. mouse\
  22. nfsmount\
  23. olefs\
  24. pcmcia\
  25. portmap\
  26. rdwr\
  27. reboot\
  28. searchfs\
  29. stub\
  30. timesync\
  31. trampoline\
  32. typepasswd\
  33. write\
  34. BIN=/$objtype/bin/aux
  35. UPDATE=\
  36. mkfile\
  37. $HFILES\
  38. ${OFILES:%.$O=%.c}\
  39. ${TARG:%=%.c}\
  40. </sys/src/cmd/mkmany
  41. DIRS=mnihongo\
  42. flashfs\
  43. gps\
  44. na\
  45. vga
  46. all:V: $DIRS
  47. $DIRS:V:
  48. for (i in $DIRS) @{
  49. echo mk $i
  50. cd $i
  51. mk all
  52. }
  53. install:V: installdirs
  54. nuke:V: nukedirs
  55. installdirs:V:
  56. for (i in $DIRS) @{
  57. echo mk $i
  58. cd $i
  59. mk install
  60. }
  61. clean:V:
  62. for (i in $DIRS) @{
  63. echo clean $i
  64. cd $i
  65. mk clean
  66. }
  67. rm -f [$OS].* *.[$OS]
  68. nukedirs:V:
  69. for (i in $DIRS) @{
  70. echo nuke $i
  71. cd $i
  72. mk nuke
  73. }
  74. update:V:
  75. update $UPDATEFLAGS $UPDATE
  76. for (i in $DIRS) @{
  77. echo update $i
  78. cd $i
  79. mk 'UPDATEFLAGS='$"UPDATEFLAGS update
  80. }