Skip to content

bodnar-dev/makefiles

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 variable

Functions:

  • $(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.

About

Reusable makefiles collection

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Makefile 100.0%