diff --git a/README.md b/README.md index c87fb68..ffe6f75 100644 --- a/README.md +++ b/README.md @@ -1015,7 +1015,7 @@ General syntax for variable declaration: make variable-name=variable-value ``` -The `=` is mandatory, as `make` would consider `DEBUG` as another target to make. Remember that, if the `variable-value` is empty, the variable is considered undefined. Assigning a new value to an existent value, overrides its old value. +The `=` is mandatory, as `make` would consider `DEBUG` as another target to make. Remember that, if the `variable-value` is empty, the variable is considered undefined. Assigning a new value to an existent value overrides its old value. Here's an example that prints the value of the `DEBUG` variable. You can find the code in [code/14-command-line-example](code/14-command-line-example): @@ -1089,7 +1089,7 @@ BAR=a,b,c ### A4.2 - Functions for String Manipulation
-

patsubst

- replacing string patterns
+

patsubst

- replaces string patterns
``` $(patsubst pattern,replacement,text) @@ -1127,7 +1127,7 @@ OBJS = main.o foo.o bar.o
- strip - strips away whitespaces +

strip

- strips away whitespaces
``` $(strip string) @@ -1142,19 +1142,27 @@ FILES = a b c # Ends here all: ifeq ($(FILES), a b c) - echo "FILES = a b c" + echo "FILES == a b c" else echo "FILES != a b c" endif ifeq ($(strip $(FILES)), a b c) - echo "RESULT = a b c" + echo "RESULT == a b c" else echo "RESULT != a b c" endif + .SILENT: ``` + +Output: + +```Makefile +FILES != a b c +RESULT == a b c +```