* Makefile : add dist target

This commit is contained in:
hagen 2014-12-12 13:51:23 +00:00
parent cf8e229098
commit cd3a7040b0

View File

@ -41,5 +41,12 @@ $(SHLIB): $(patsubst %.cpp,obj/%.o,$(LIB_SRC))
clean:
rm -fr obj $(I2PD) $(SHLIB)
LATEST_TAG=$(shell git describe --tags --abbrev=0 master)
dist:
git archive --format=tar.gz -9 --worktree-attributes \
--prefix=i2pd_$(LATEST_TAG)/ $(LATEST_TAG) -o i2pd_$(LATEST_TAG).tar.gz
.PHONY: all
.PHONY: clean
.PHONY: dist