Re:Show HN: My C compiler compiled itself
by dzaima on Wednesday December 04, 2024 @04:56PM
(#42322474)
Aand that brings up another issue - that (and a good amount of things that will work as expected on the default -j1) breaks with -j4.
Apparently .WAIT and .NOTPARALLEL exist, which I couldn't find last time I needed something around this. Though for this unfortunately `make -j4 foo .WAIT bar` isn't allowed, but at that point separate make invocations is fine.
Re:Show HN: My C compiler compiled itself
by anyfoo on Wednesday December 04, 2024 @05:39PM
(#42322849)
Another fair point. I think I'd use this:
make restore & (make -j 20 kernel && make reset upload)
But in reality, the kernel target actually calls make anyway, so it's just in there. Depends on the exact situation.
I also have a lot of phony targets. It really enjoy just being able to type:
To bring a device into a sane state, build the kernel, reset the device, and upload the built firmware.