2018-12-18 18:04:42 +00:00
|
|
|
# List any generated files here
|
|
|
|
TARGETS =
|
|
|
|
# List any source files used to generate the targets here
|
|
|
|
SOURCES =
|
|
|
|
# List any directories that have their own Makefile here
|
2018-08-02 21:02:38 +00:00
|
|
|
SUBDIRS = backend
|
|
|
|
|
2018-12-18 18:04:42 +00:00
|
|
|
# Default target
|
|
|
|
all: $(SUBDIRS) $(TARGETS)
|
2018-08-02 21:02:38 +00:00
|
|
|
|
2018-12-18 18:04:42 +00:00
|
|
|
# Recurse into subdirs for same make goal
|
2018-08-02 21:02:38 +00:00
|
|
|
$(SUBDIRS):
|
|
|
|
$(MAKE) -C $@ $(MAKECMDGOALS)
|
|
|
|
|
2018-12-18 18:04:42 +00:00
|
|
|
# Clean all targets recursively
|
|
|
|
clean: $(SUBDIRS)
|
|
|
|
rm -f $(TARGETS)
|
2018-08-02 21:02:38 +00:00
|
|
|
|
2018-12-18 18:04:42 +00:00
|
|
|
# Define go generate if not already defined
|
|
|
|
GO_GENERATE := go generate
|
|
|
|
|
|
|
|
# Run go generate for the targets
|
|
|
|
$(TARGETS): $(SOURCES)
|
|
|
|
$(GO_GENERATE) -x
|
|
|
|
|
|
|
|
.PHONY: all clean $(SUBDIRS)
|