▲ | nrclark 6 days ago | |
Yes to calling CMake/etc. No to checking in generated Makefiles. But for your top-level “thing that calls CMake”, try writing a Makefile instead of a shell script. You’ll be surprised at how powerful it is. Make is a dark horse. | ||
▲ | dgfitz 5 days ago | parent [-] | |
I wouldn't be surprised at all, make is great! My contention is that a build script should ideally be: sha-bang clone && cd $cloned_folder ${generate_makefile_with_tool} make $1 Anything much longer than that can (and usually will) quickly spiral out of control. Make is great. Unless you're code-golfing, your makefile will be longer than a few lines and a bunch of well-intentioned-gremlins will pop in and bugger the whole thing up. Just seen it too many times. Edit: in the jenkins case, in a jenkins build shell the clone happens outside build.sh: (in jenkins shell): clone && cd clone ./build.sh $(0-1 args) (inside build.sh): $(generate_makefile_with_tool) make $1 |