|
Conventions are great, but that doesn't look like anything specific to make, a shell wrapper could do that: #!/bin/sh
case $1 in
init)
... do whatever for each project init
;;
start)
... do whatever for each project start
;;
test)
... do whatever for each project tests
;;
*)
echo "Usage: $0 init|start|test" >&2
exit 1
;;
esac
In my home/personal projects I use a similar convention (clean, deploy, update, start, stop, test...), I call those little sh scripts in the root of the repo "runme".The advantage could be, maybe, no need to install make if not present, and no need to learn make stuff if you don't know it. Sometimes they don't match the usual words (deploy, start, stop, etc) but then I know that if I don't remember them, I just type ./runme and get the help. For my scenario, it's perfect because of it's simplicity. |