1
0
Mirror von https://github.com/tkuschel/bees.git synchronisiert 2026-05-08 04:59:37 +02:00

lib: don't rebuild libcrucible unless there is a version change

If we create an identical .version.cc then don't bother keeping it.
This prevents libcrucible from rebuilding if there are no other changes,
which in turn prevents all the binaries from rebuilding unconditionally.

Signed-off-by: Zygo Blaxell <bees@furryterror.org>
Dieser Commit ist enthalten in:
Zygo Blaxell
2020-10-18 22:06:47 -04:00
Ursprung 03627503ec
Commit 0c84302d9a
+1 -1
Datei anzeigen
@@ -40,7 +40,7 @@ depends.mk: $(CRUCIBLE_OBJS:%.o=.depends/%.dep)
.version.cc: configure.h Makefile ../makeflags $(CRUCIBLE_OBJS:.o=.cc) ../include/crucible/*.h
echo "namespace crucible { const char *VERSION = \"$(TAG)\"; }" > $@.new
mv -f $@.new $@
if ! cmp "$@.new" "$@"; then mv -fv $@.new $@; fi
include depends.mk