-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(makefiles): ✨ Makefiles example
- Loading branch information
1 parent
22bdcc6
commit c727272
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# MAKEFILES | ||
|
||
NOTES: | ||
|
||
* Tabs not spaces (use vscode spaces status bar to set tabs) | ||
|
||
## Versions and Flavours | ||
|
||
```sh | ||
# macos | ||
make --version | ||
|
||
>GNU Make 3.81 | ||
>Copyright (C) 2006 Free Software Foundation, Inc. | ||
``` | ||
|
||
## Task Processsing | ||
|
||
We use .PHONY to create a target that can be processed | ||
|
||
```sh | ||
cd ./taskprocessing | ||
|
||
# will process first target | ||
make | ||
|
||
# process a specific target | ||
make target1 | ||
``` | ||
|
||
## Resources | ||
|
||
* A Simple Makefile Tutorial [here](https://www.cs.colby.edu/maxwell/courses/tutorials/maketutor/) | ||
* Appendix B Errors Generated by Make [here](https://www.gnu.org/software/make/manual/html_node/Error-Messages.html) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
folder=../ | ||
|
||
.PHONY: first | ||
first: | ||
@echo "Processing first (default)" | ||
|
||
.PHONY: target1 | ||
target1: dependency1 dependency2 | ||
@echo "Processing target1" | ||
|
||
.PHONY: dependency1 | ||
dependency1: | ||
@echo "Processing dependency1" | ||
ls -l ${folder} | ||
|
||
.PHONY: dependency2 | ||
dependency2: | ||
@echo "Processing dependency2" | ||
|