Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save excavador/756e0406aadb914440fe4c7b585d6317 to your computer and use it in GitHub Desktop.
Save excavador/756e0406aadb914440fe4c7b585d6317 to your computer and use it in GitHub Desktop.
ifeq ($(STAGE),initial)
.PHONY: everything
everything:
$(MAKE) STAGE=bootstrap bootstrap $(MAKECMDFLAGS)
$(MAKE) STAGE=execute bootstrap $(MAKECMDFLAGS)
$(MAKE) STAGE=execute $(MAKECMDGOALS) $(MAKECMDFLAGS)
$(MAKECMDGOALS): everything
endif
ifeq ($(STAGE),bootstrap)
include make/01.configure.mk
include make/02.inspect.mk
include make/03.tool.mk
endif
ifeq ($(STAGE),execute)
.DEFAULT_GOAL := all
.PHONY: api
include make/01.configure.mk
include make/02.inspect.mk
include make/03.tool.mk
include make/04.git.mk
include make/05.docker.mk
...
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment