2

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.

Alex Petrosyan
  • 473
  • 2
  • 20
  • @HardcoreHenry, So, should I simply close the issue? Or is there something specific I could do? – Alex Petrosyan Aug 09 '18 at 18:43
  • I just looked up the etiquette -- apparently I wasn't supposed to answer it, but instead just mark it as a duplicate (oops). It will be closed automatically by the conveners with higher reps. – HardcoreHenry Aug 09 '18 at 19:05
  • @HardcoreHenry, My mistake entirely. Thanks for not automatically downvoting the question. – Alex Petrosyan Aug 09 '18 at 19:21

1 Answers1

6

@ 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

HardcoreHenry
  • 5,909
  • 2
  • 19
  • 44