From 3b85fc8bc7c7893cb19723614782e9458de391c8 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Sat, 19 Nov 2022 02:19:25 -0500 Subject: [PATCH] lib: drop version.cc entirely crucible::VERSION doesn't make much sense now that libcrucible no longer exists as a shared library. Nothing ever referenced it, so it can go away. Signed-off-by: Zygo Blaxell --- lib/Makefile | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/lib/Makefile b/lib/Makefile index 17f2041..24cd309 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -1,5 +1,3 @@ -TAG ?= $(shell git describe --always --dirty || echo UNKNOWN) - default: libcrucible.a %.a: Makefile @@ -37,12 +35,8 @@ configure.h: configure.h.in include $(CRUCIBLE_OBJS:%.o=%.dep) -.version.cc: configure.h Makefile ../makeflags $(CRUCIBLE_OBJS:.o=.cc) ../include/crucible/*.h - echo "namespace crucible { const char *VERSION = \"$(TAG)\"; }" > $@.new - if ! cmp "$@.new" "$@"; then mv -fv $@.new $@; fi - %.o: %.cc ../makeflags $(CXX) $(BEES_CXXFLAGS) -o $@ -c $< -libcrucible.a: $(CRUCIBLE_OBJS) .version.o +libcrucible.a: $(CRUCIBLE_OBJS) $(AR) rcs $@ $^