Commit 8fed9a13 by Maarten L. Hekkelman

Remove version resource building

update gitignore
parent 4fa2d843
obj.dbg/
obj/
.libs/
.vscode/
autom4te.cache/
GNUmakefile
include/cif++/Config.hpp
tools/symop-map-generator
test/unit-test
libcif++.pc
libcif++.la
config.status
config.log
libtool
...@@ -132,28 +132,13 @@ $(OBJDIR)/Symmetry.lo: src/SymOpTable_data.cpp ...@@ -132,28 +132,13 @@ $(OBJDIR)/Symmetry.lo: src/SymOpTable_data.cpp
endif endif
# version info
REVISION = $(shell git log --pretty=format:%h --max-count=1)
REVISION_FILE = version-info-$(REVISION).txt
$(REVISION_FILE):
rm -f version-info-*.txt
git describe --match=build --dirty > $@
git log --pretty=medium --date=iso8601 -1 >> $@
rsrc:
@ mkdir -p $@
rsrc/lib-version.txt: $(REVISION_FILE) | rsrc
cp $? $@
$(LIB_TARGET): $(OBJECTS) $(LIB_TARGET): $(OBJECTS)
$(CXXLINK) -rpath $(libdir) $(OBJECTS) $(LIBS) $(CXXLINK) -rpath $(libdir) $(OBJECTS) $(LIBS)
lib: $(LIB_TARGET) lib: $(LIB_TARGET)
.PHONY: libs .PHONY: libs
all: lib rsrc/lib-version.txt all: lib
.PHONY: all .PHONY: all
-include $(OBJECTS:%.lo=%.d) -include $(OBJECTS:%.lo=%.d)
...@@ -188,7 +173,7 @@ $(1)_OBJECTS = $$(OBJDIR)/$(1)-test.o ...@@ -188,7 +173,7 @@ $(1)_OBJECTS = $$(OBJDIR)/$(1)-test.o
test/$(1)-test: $(LIB_TARGET) $$($(1)_OBJECTS) test/$(1)-test: $(LIB_TARGET) $$($(1)_OBJECTS)
@ echo ">>> building $(1)-test" @ echo ">>> building $(1)-test"
$(LIBTOOL) --silent --tag=CXX --mode=link $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $$@ $$($(1)_OBJECTS) -L.libs -lboost_timer -lcif++ $(LIBS) $(LIBTOOL) --silent --tag=CXX --mode=link $(CXX) $(CXXFLAGS) $(LDFLAGS) -o $$@ $$($(1)_OBJECTS) -L.libs -lcif++ $(LIBS)
.PHONY: $(1)-test .PHONY: $(1)-test
$(1)-test: test/$(1)-test $(1)-test: test/$(1)-test
......
This diff is collapsed. Click to expand it.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment