Makefile (270B)
1 FUNCTIONS_DIR=./.functions/examples 2 EXAMPLES_DIR=./examples 3 4 $(shell mkdir -p $(FUNCTIONS_DIR)) 5 6 .PHONY: examples 7 examples: 8 find $(EXAMPLES_DIR)/* -maxdepth 0 -type d -exec basename {} \; | \ 9 xargs -I {} go build -tags example -o $(FUNCTIONS_DIR)/{} $(EXAMPLES_DIR)/{}