wiki:makefile-functions
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:makefile-functions [August 19, 2026 at 18:03] – Ivan Janevski | wiki:makefile-functions [August 19, 2026 at 18:10] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # Functions | + | # Makefile |
| **Make functions** manipulate strings and lists. Common ones: `wildcard`, `patsubst`, `subst`, `filter`, `foreach`. | **Make functions** manipulate strings and lists. Common ones: `wildcard`, `patsubst`, `subst`, `filter`, `foreach`. | ||
| Line 12: | Line 12: | ||
| `$(wildcard *.c)` lists all `.c` files in the current directory. Essential for avoiding hardcoded file lists. | `$(wildcard *.c)` lists all `.c` files in the current directory. Essential for avoiding hardcoded file lists. | ||
| - | ------ | ||
| **`patsubst`** replaces a pattern in a list: | **`patsubst`** replaces a pattern in a list: | ||
wiki/makefile-functions.1787162612.md.gz · Last modified: by Ivan Janevski
