make is working for me, but I'm looking for the appropriate tool.
I'm currently using
Makefiles as script runners for my projects. In order to standardize each project, I just create a makefile so that I can write things like:
make setup make teardown make execute "SOMETHING"
In this case,
setup might pull and deploy a bunch of docker containers,
teardown might clean them up, and
execute would run a command against a container.
I'm not using
make to actually build things with dependencies. This makes me think I'm just being very hacky...but hey, it's worked so far.
I don't think
make is the right tool for this job, but I don't know if there's some other common binary that allows people to just run
xyz command, where
xyz would be make in this case. I don't want to write a new bash script for every project, since that's generally much less readable imo.
Things I don't like are when
make spits out:
make: *** No rule to make target FOO. Stop.
This is usually when I abuse
make to process args (e.g.
make execute "do this in a container").
Does anyone have suggestions on a common unix tool that would allow me to just specify some commands to run?