You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: learn/building_programs/build_tools.md
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -253,8 +253,9 @@ implicit rules messing up our ``Makefile`` in surprising and harmful ways.
253
253
Next, we have a configuration section where we define variables, in case you
254
254
want to switch out your compiler, it can be easily done here.
255
255
We also introduced the ``SRCS`` variable to hold all source files, which is
256
-
more intuitive than specifying object files, we can easily create the object
257
-
files by appending a ``.o`` suffix using the functions ``addsuffix``.
256
+
more intuitive than specifying object files.
257
+
We can easily create the object files by appending a ``.o`` suffix using the
258
+
functions ``addsuffix``.
258
259
The ``.PHONY`` is a special rule, which should be used for all entry points
259
260
of your ``Makefile``, here we define two entry point, we already know *all*,
260
261
the new *clean* rule deletes all the build artifacts again such that we indeed
@@ -313,7 +314,7 @@ You should find the expected (or maybe unexpected) printout after running ``make
313
314
{% include note.html content="appending with ``+=`` to an undefined variable will produce a recursively expanded variable with this state being inherited for all further appending." %}
314
315
315
316
While, it seems like an interesting feature to use, it tends to lead to
316
-
surprising and expected outcomes. Usually, when defining variables like your
317
+
surprising and unexpected outcomes. Usually, when defining variables like your
317
318
compiler, there is little reason to actually use the recursive expansion at all.
318
319
319
320
The same can easily be archived using the ``:=`` declaration:
0 commit comments