Created
March 6, 2019 13:47
-
-
Save jvmvik/a6b9ba746a337c4b2457f0dbcc126a47 to your computer and use it in GitHub Desktop.
Makefile tips
This file contains hidden or 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
| # Makefile flash card | |
| # | |
| # check if file exist | |
| ifneq ("$(wildcard $(path))","") | |
| FILE_EXISTS = 1 | |
| else | |
| FILE_EXISTS = 0 | |
| endif | |
| # Ignore directory | |
| .PHONY: | |
| # run on list in parallel | |
| # make -j 3 | |
| list=(a b c) | |
| all: $(list) | |
| $(list): | |
| echo @$ | |
| # include a Makefile extension | |
| include extension.mf | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment