hodler/tasks/crystal.mk

17 lines
262 B
Makefile
Raw Normal View History

2021-04-04 12:55:38 +00:00
define BINARY_template
ALL_FILES += $($(1)_FILES)
build: build-$(1)
build-$(1): bin/$(1)
bin/$(1): $($(1)_FILES)
shards build $(1)
clean: clean-$(1)
clean-$(1):
rm -f bin/$(1)
endef
$(foreach binary,$(BINARIES),$(eval $(call BINARY_template,$(binary))))