mirror of
https://github.com/Zygo/bees.git
synced 2025-05-17 21:35:45 +02:00
Makefile: .version.o is made from a generated file
We should probably not put it into the objects list. Let's instead explicitly put it as a depend of libcrucible.so. This allows us to not use *.cc as a depend for .version.cc which makes more sense as CRUCIBLE_OBJS is also explicitly defined and not built from wildcards. Signed-off-by: Kai Krakow <kai@kaishome.de>
This commit is contained in:
parent
8636312cab
commit
4417b18d9e
@ -18,9 +18,8 @@ CRUCIBLE_OBJS = \
|
||||
task.o \
|
||||
time.o \
|
||||
uuid.o \
|
||||
.version.o \
|
||||
|
||||
libcrucible.so: $(CRUCIBLE_OBJS) -luuid
|
||||
libcrucible.so: $(CRUCIBLE_OBJS) .version.o -luuid
|
||||
|
||||
include ../makeflags
|
||||
include ../Defines.mk
|
||||
@ -36,7 +35,7 @@ depends.mk: $(CRUCIBLE_OBJS:%.o=.depends/%.dep)
|
||||
cat $^ > $@.new
|
||||
mv -f $@.new $@
|
||||
|
||||
.version.cc: configure.h Makefile ../makeflags *.cc ../include/crucible/*.h
|
||||
.version.cc: configure.h Makefile ../makeflags $(CRUCIBLE_OBJS:.o=.cc) ../include/crucible/*.h
|
||||
echo "namespace crucible { const char *VERSION = \"$(TAG)\"; }" > $@.new
|
||||
mv -f $@.new $@
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user