3 ms·
These “run something” targets should be marked as .PHONY so make realizes they will not produce a file. Otherwise a file named like the target will confuse make
by loloquwowndueo 4y ago
These “run something” targets should be marked as .PHONY so make realizes they will not produce a file. Otherwise a file named like the target will confuse make and turn your day into a sad one.
- pydry 4y agoI ran into this back when I used make as a command runner. After a short detour via just Ive been using a shell script with a big case statement since.
- kevincox 4y agoYup. I've found that in most cases a directory of script files ends up better. Or even better a directory of python files since shell kinda sucks.