X-Git-Url: http://git.vrable.net/?a=blobdiff_plain;f=Makefile;h=32b5033c5f288441ff72318aa637e85a78f30b20;hb=cae5d6103b0efeb5cd34cd67c65df745ef4d598b;hp=0363f149f90c94cbee33e95a5ae1902c99022ae5;hpb=4c7c830e38130011d1f5cc68934a31619e3b8a85;p=cumulus.git diff --git a/Makefile b/Makefile index 0363f14..32b5033 100644 --- a/Makefile +++ b/Makefile @@ -4,14 +4,14 @@ CXXFLAGS=-O -Wall -D_FILE_OFFSET_BITS=64 $(DEBUG) \ `pkg-config --cflags $(PACKAGES)` -DLBS_VERSION=`cat version` LDFLAGS=$(DEBUG) `pkg-config --libs $(PACKAGES)` -SRCS=localdb.cc ref.cc scandir.cc sha1.cc statcache.cc store.cc util.cc +SRCS=localdb.cc metadata.cc ref.cc scandir.cc sha1.cc store.cc util.cc OBJS=$(SRCS:.cc=.o) lbs : $(OBJS) $(CXX) $(LDFLAGS) -o $@ $^ -version : - (git-describe || echo "Unknown") >version +version : NEWS + (git-describe || (head -n1 NEWS | cut -d" " -f1)) >version 2>/dev/null $(OBJS) : version clean :