on ca41228 help sign in
gogol/Makefile
31 lines 463 B history raw
1SERVICES ?= $(wildcard gogol-*)
2LIBRARIES ?= core gogol $(SERVICES)
3FORWARD := sdist upload candidate
5build:
6 stack --docker --docker-run-args '--memory=3G --cpuset-cpus=0,1' build
8clean:
9 stack clean
11define forward
12$1: $$(addprefix $1-,$$(LIBRARIES))
14$1-%:
15 @make -C $$* $1
17.PHONY: $1
18endef
20$(foreach c,$(FORWARD),$(eval $(call forward, $c)))
22.PHONY: $(LIBRARIES)
24gogol:
25 stack build gogol
27core:
28 stack build gogol-core
30$(SERVICES):
31 stack build $@