Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tsertkov/makefiles
Reusable makefiles collection
https://github.com/tsertkov/makefiles
make makefile
Last synced: 23 days ago
JSON representation
Reusable makefiles collection
- Host: GitHub
- URL: https://github.com/tsertkov/makefiles
- Owner: tsertkov
- License: mit
- Created: 2024-03-06T10:01:36.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-13T08:44:08.000Z (8 months ago)
- Last Synced: 2024-08-17T08:06:36.526Z (3 months ago)
- Topics: make, makefile
- Language: Makefile
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# makefiles
Reusable Makefiles collection.
## Usage
Include base makefile with `include makefiles/Makefile.base.mk` in your Makefile.
Include additional makefiles as needed.
## List of makefiles
- `Makefile.base.mk` - base makefile
- `Makefile.logs.mk` - makefile with `logs-*` targets
- `Makefile.aws.mk` - makefile with `aws-*` targets### Makefile.base.mk
Base makefile that must be included in your Makefile.
Targets:
- `list` - prints HELP_SCREEN variable
- `require-%` - guard asserting executable
- `assert-%` - guard asserting environment variableFunctions:
- `$(call _announce_target,$(TARGET_NAME))` - print target name
### Makefile.logs.mk
Targets:
- `logs-api` - tail api logs
- `logs-lambda` - tail lambda logs
- `logs-access` - CloudFront access logs with `goaccess`### Makefile.aws.mk
Targets:
- `aws-cf-outputs` - print cloudformation stack outputs
Functions:
- `$(call aws_cf_output,$(STACK_NAME),$(AWS_REGION),$(OUTPUT_NAME))` - get cloudformation stack single output value
- `$(call aws_region_to_short_name,$(AWS_REGION))` - convert region full name to region code## Testing
Run `make test` to ensure that all makefiles have valid syntax.