I'm trying to create a build script for GCC (which works, for now), but I would like to be able to skip rebuilding all the prereq libraries when I'm only updating GCC/binutils for example. I thought of making the script create a file in the main build directory containing all the steps to skip. How would I do that (something with the
cat command and find to see if a step is in the file?). This would allow me, albeit manually, to enable a rebuild of certain parts when needed.
UPDATE: The answers posted seem to assume that I need a makefile, while I find that very troublesome and don't want it; the build procedure consists of many cd, configure, make, make install steps that I simply don't want in a makefile. The script is near-finished, this is the last step I need for it...
UPDATE2: as I said in the comment below, I'm on windows, using MSYS bash as shell.
PS: this "skipping completed steps" needs to be performed each time the script is run.