Makefiles are bad with state that is not represented as files, right? I remember that I had to create "stamp" files with hashes and things like that to overcome this limitation.
There is also .PHONY, but that would make the rule to always be triggered. Maybe I'm misremembering, it's been a long time :)
Makefiles are bad with state that is not represented as files, right? I remember that I had to create "stamp" files with hashes and things like that to overcome this limitation.
There is also .PHONY, but that would make the rule to always be triggered. Maybe I'm misremembering, it's been a long time :)
Makefiles are for building artifacts. They are wholly inadequate at orchestrating environments and task pipelines.
Can you do it? Sure, but somewhere someone is going to be suffering.
Better yet, use a well organized "rm -rf" command!
Refactoring advice: "The cheapest, fastest, and most reliable components are those that aren't there." — Gordon Bell