Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • What if I want to change the file suffix for the files in the outputs folder to something other than txt? I can't think of a clean way to do that with subst... Commented Dec 6, 2016 at 20:49
  • There are many functions in gnu make. I updated my answer with an example. Commented Dec 6, 2016 at 21:04
  • For anyone who is wondering about "cp $< $@": gnu.org/software/make/manual/html_node/Automatic-Variables.html Commented Aug 11, 2020 at 9:42