In a few makefiles, I came across @rm
syntax, vs -rm
(ignore errors thrown by rm
) and pure rm
.
I'd like to know what's the difference.
In a few makefiles, I came across @rm
syntax, vs -rm
(ignore errors thrown by rm
) and pure rm
.
I'd like to know what's the difference.
@
tells make to not echo the recipe to output when it's run.
-
tells make to ignore the return value of the recipe (assume it passes)
you can use a combination of both of these and +
. See the Echoing and Errors
in the gnu make manual for details