mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 13:25:45 +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>
This commit is contained in:
parent
03627503ec
commit
0c84302d9a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user