Skip to content

Commit

Permalink
Update makefile-syntax.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Jul 29, 2024
1 parent 2b5131f commit 4aea200
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cheatsheets/make/makefile-syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ For language specific examples, see my [Code Cookbook](https://github.com/Michae

Phony is useful if your target matches an actual directory but you don't want to `make` to run against it. Normally, you could run `make DIR` for compiling a C program or similar, but that isn't helpful outside of compiled languages.


This can be done at the start, or just before each target.

Here we use PHONY where `foo` and `docs` are actual directories as well targets.
Expand Down Expand Up @@ -215,7 +214,7 @@ docs := $(wildcard */*.md)
# _site/about.md docs/README.md docs/deploy.md docs/development.md docs/installation.md docs/usage.md resources/index.md
```

Note using `**/*.md` will **not** work for finding the current directory - it will still search one level down.
Note using `**/*.md` will **not** work for finding the current directory like if using with `grep`. For Make wildcards, it will still search **one level** below the current directory.

### Shell find

Expand Down

0 comments on commit 4aea200

Please sign in to comment.