Skip to content

Instantly share code, notes, and snippets.

@dch
Forked from RJ/Makefile-erlang.mk
Created April 1, 2014 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dch/9909562 to your computer and use it in GitHub Desktop.
Save dch/9909562 to your computer and use it in GitHub Desktop.
APPDIRS := $(wildcard apps/*)
## Example hack to filter one out:
## APPDIRS := $(filter-out apps/fooapp, $(APPDIRS))
define PROXY_TARGET
$(1):
$(foreach appdir,$(APPDIRS),$(MAKE) -C $(appdir) $(1) ;)
endef
## add erlang.mk targets you care about here:
PROXY_TARGETS = all app clean built-plt dialyze docs tests
$(foreach targ,$(PROXY_TARGETS),$(eval $(call PROXY_TARGET,$(targ))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment