From 19cb631df5c2e0ab8a121bb37296a79b657560a7 Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Thu, 14 May 2020 20:22:54 -0400 Subject: [PATCH] make: Fix build target dependencies Build needs to depend on not only the contents of public/ but on the source JS files under assets/ --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 34e6a80..d427c1a 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ # Rebuilding the webpack for a server-only release is a painful # few minutes on my poor old thinkpad. We can do better +JS_FILES := $(shell find assets) PUBLIC_FILES := $(shell find public) LIB_FILES := $(shell find lib) @@ -18,7 +19,7 @@ test: # If no public files have changed, don't rebuild the webpack! # We make this timestamp file the dependency for build to # ensure we don't do it too often... -.public.ts: $(PUBLIC_FILES) +.public.ts: $(JS_FILES) $(PUBLIC_FILES) env MOJO_WEBPACK_VERBOSE=1 MOJO_WEBPACK_BUILD=1 ./gloat.pl routes touch .public.ts -- libgit2 1.1.1