Reusable Makefiles collection.
Include base makefile with include makefiles/Makefile.base.mk in your Makefile.
Include additional makefiles as needed.
Makefile.base.mk- base makefileMakefile.logs.mk- makefile withlogs-*targetsMakefile.aws.mk- makefile withaws-*targets
Base makefile that must be included in your Makefile.
Targets:
list- prints HELP_SCREEN variablerequire-%- guard asserting executableassert-%- guard asserting environment variable
Functions:
$(call _announce_target,$(TARGET_NAME))- print target name
Targets:
logs-api- tail api logslogs-lambda- tail lambda logslogs-access- CloudFront access logs withgoaccess
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
Run make test to ensure that all makefiles have valid syntax.