New make --shuffle mode
I don't know a lot of makefiles, but based on what was written in the article, I was just trying to design a makefile which enforces goal ordering using the "correct" way, i.e dependencies. Such a makefile should naturally be unaffected by --shuffle and by parallel execution.<p>Do I miss something or is this impossible short of duplicating the goals?<p>E.g., suppose you have goals a, b and c, which are independent and you want to define another goal d which runs first a, then b then c.<p>My first idea was to define additional goals to capture the dependency structure, like this:<p>d: x2 c<p>x2: x1 b<p>x1: a<p>But then nothing is stopping the shuffler from running c, b, a, x1, x2, d.<p>The only solution I see would be to copy the shell commands of b and c into new goals:<p>d: xc<p>xc: xb; <shell commands of c><p>xb: a; <shell commands of b><p>Which seems really unsatisfying.<p>Is there a better way?