From 8f733e06949cd4b8d3a5162c2d6bf2612a38e80e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Mon, 25 Jun 2018 23:15:02 +0200 Subject: [PATCH] fix(nodejs): use a recursive wildcard to find all ui source files when building --- Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c99576e31..9a1cbd34e 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,13 @@ ALERTMANAGER_URI := "file://$(MOCK_PATH)" # Listen port when running locally PORT := 8080 +# define a recursive wildcard function, we'll need it to find deeply nested +# sources in the ui directory +# based on http://blog.jgc.org/2011/07/gnu-make-recursive-wildcard-function.html +rwildcard = $(foreach d, $(wildcard $1*), $(call rwildcard,$d/,$2) $(filter $(subst *,%,$2),$d)) + SOURCES := $(wildcard *.go) $(wildcard */*.go) $(wildcard */*/*.go) -ASSET_SOURCES := $(wildcard ui/public/* ui/src/* ui/src/*/*) +ASSET_SOURCES := $(call rwildcard, ui/public ui/src, *) GO_BINDATA_MODE := prod ifdef DEBUG