Skip to main content
added 394 characters in body
Source Link
l0b0
  • 53.6k
  • 48
  • 225
  • 398

For this you would usually use make compile, but you can easily roll your own by creating a script called MyProject which checks $1 for a preset list of subcommands:

case "$1" in
    compile)
        my_compile_command(s)
        shift
        ;;
    *)
        echo "$0: Unknown command: $1"
        exit 1
        ;;
esac

References:

For this you would usually use make compile, but you can easily roll your own by creating a script called MyProject which checks $1 for a preset list of subcommands:

case "$1" in
    compile)
        my_compile_command(s)
        shift
        ;;
    *)
        echo "$0: Unknown command: $1"
        exit 1
        ;;
esac

For this you would usually use make compile, but you can easily roll your own by creating a script called MyProject which checks $1 for a preset list of subcommands:

case "$1" in
    compile)
        my_compile_command(s)
        shift
        ;;
    *)
        echo "$0: Unknown command: $1"
        exit 1
        ;;
esac

References:

Source Link
l0b0
  • 53.6k
  • 48
  • 225
  • 398

For this you would usually use make compile, but you can easily roll your own by creating a script called MyProject which checks $1 for a preset list of subcommands:

case "$1" in
    compile)
        my_compile_command(s)
        shift
        ;;
    *)
        echo "$0: Unknown command: $1"
        exit 1
        ;;
esac