From 38db1eecbbb048fcb9edcc4302ea3e4ea8e4e508 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 10 Aug 2024 13:30:42 +0100 Subject: Reduce the amount of unnecessary rebuilds on shader source changes --- glsl.jam | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'glsl.jam') diff --git a/glsl.jam b/glsl.jam index eeeb340..20ef180 100644 --- a/glsl.jam +++ b/glsl.jam @@ -37,6 +37,8 @@ actions glsl.embed rule glsl.embed ( targets * : sources * : properties * ) { - DEPENDS $(targets) : lib/embed-glsl.h.m4 lib/embed-glsl.cpp.m4 ; + NOUPDATE $(targets[2]) ; + DEPENDS $(targets[2]) : lib/embed-glsl.h.m4 ; + DEPENDS $(targets[1]) $(targets[3]) : lib/embed-glsl.cpp.m4 ; OPTIONS on $(targets) = [ type.type $(sources) ] ; } -- cgit v1.2.3