summaryrefslogtreecommitdiff
path: root/mkfiles/mksubdirs
diff options
context:
space:
mode:
Diffstat (limited to 'mkfiles/mksubdirs')
-rw-r--r--mkfiles/mksubdirs25
1 files changed, 25 insertions, 0 deletions
diff --git a/mkfiles/mksubdirs b/mkfiles/mksubdirs
new file mode 100644
index 00000000..3192320e
--- /dev/null
+++ b/mkfiles/mksubdirs
@@ -0,0 +1,25 @@
+all:V: all-$SHELLTYPE
+install:V: install-$SHELLTYPE
+uninstall:V: uninstall-$SHELLTYPE
+nuke:V: nuke-$SHELLTYPE
+clean:V: clean-$SHELLTYPE
+
+%-rc %-nt:QV:
+ for (j in $DIRS)
+ {
+ {
+ test -d $j && {
+ echo '@{builtin cd' $j '; mk $MKFLAGS $stem}'
+ @{builtin cd $j; mk $MKFLAGS $stem}
+ }
+ } || test ! -e $j
+ }
+
+%-sh:QV:
+ for j in $DIRS
+ do
+ if test -d $j; then
+ echo "(cd $j; mk $MKFLAGS $stem)"
+ (cd $j; mk $MKFLAGS $stem)
+ fi || test ! -e $j
+ done