lib/Tools/mkdir
changeset 8162 020e384e67dd
parent 8159 64c272504383
child 8194 0c5d9d23b715
     1.1 --- a/lib/Tools/mkdir	Fri Jan 28 15:08:15 2000 +0100
     1.2 +++ b/lib/Tools/mkdir	Fri Jan 28 15:26:51 2000 +0100
     1.3 @@ -17,6 +17,7 @@
     1.4    echo "  Options are:"
     1.5    echo "    -b           setup build mode (session outputs heap image)"
     1.6    echo "    -d           setup document"
     1.7 +  echo "    -p           include parent logic target"
     1.8    echo
     1.9    echo "  Prepare logic session directory, including IsaMakefile, document etc."
    1.10    echo
    1.11 @@ -36,8 +37,9 @@
    1.12  
    1.13  BUILD=""
    1.14  DOCUMENT=""
    1.15 +PARENT=""
    1.16  
    1.17 -while getopts "bd" OPT
    1.18 +while getopts "bdp" OPT
    1.19  do
    1.20    case "$OPT" in
    1.21      b)
    1.22 @@ -46,6 +48,9 @@
    1.23      d)
    1.24        DOCUMENT=true
    1.25        ;;
    1.26 +    p)
    1.27 +      PARENT=true
    1.28 +      ;;
    1.29      \?)
    1.30        usage
    1.31        ;;
    1.32 @@ -105,13 +110,20 @@
    1.33      echo
    1.34      echo "## $NAME"
    1.35      echo ""
    1.36 -    echo "$NAME: $LOGIC $TARGET"
    1.37 -    echo
    1.38 -    echo "$LOGIC:"
    1.39 -    echo -e "\t@cd \$(SRC)/$LOGIC; \$(ISATOOL) make $LOGIC"
    1.40 -    echo
    1.41 -    echo "$TARGET: \$(OUT)/$LOGIC     ## add $NAME sources here"
    1.42 -    echo -e "\t@\$(ISATOOL) $USEDIR \$(OUT)/$LOGIC $NAME"
    1.43 +    if [ -n "$PARENT" ]; then
    1.44 +      echo "$NAME: $LOGIC $TARGET"
    1.45 +      echo
    1.46 +      echo "$LOGIC:"
    1.47 +      echo -e "\t@cd \$(SRC)/$LOGIC; \$(ISATOOL) make $LOGIC"
    1.48 +      echo
    1.49 +      echo "$TARGET: \$(OUT)/$LOGIC     ## add $NAME sources here"
    1.50 +      echo -e "\t@\$(ISATOOL) $USEDIR \$(OUT)/$LOGIC $NAME"
    1.51 +    else
    1.52 +      echo "$NAME: $TARGET"
    1.53 +      echo
    1.54 +      echo "$TARGET:                    ## add $NAME sources here"
    1.55 +      echo -e "\t@\$(ISATOOL) $USEDIR $LOGIC $NAME"
    1.56 +    fi
    1.57      echo
    1.58      echo
    1.59      echo "## clean"