make dist: include configure script in tarball

Signed-off-by: Matthias Lederhofer <matled@gmx.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Matthias Lederhofer 2007-06-18 23:30:36 +02:00 committed by Junio C Hamano
parent 1066c2c548
commit f58494bf82

View File

@ -1029,15 +1029,16 @@ git.spec: git.spec.in
mv $@+ $@ mv $@+ $@
GIT_TARNAME=git-$(GIT_VERSION) GIT_TARNAME=git-$(GIT_VERSION)
dist: git.spec git-archive dist: git.spec git-archive configure
./git-archive --format=tar \ ./git-archive --format=tar \
--prefix=$(GIT_TARNAME)/ HEAD^{tree} > $(GIT_TARNAME).tar --prefix=$(GIT_TARNAME)/ HEAD^{tree} > $(GIT_TARNAME).tar
@mkdir -p $(GIT_TARNAME) @mkdir -p $(GIT_TARNAME)
@cp git.spec $(GIT_TARNAME) @cp git.spec configure $(GIT_TARNAME)
@echo $(GIT_VERSION) > $(GIT_TARNAME)/version @echo $(GIT_VERSION) > $(GIT_TARNAME)/version
@$(MAKE) -C git-gui TARDIR=../$(GIT_TARNAME)/git-gui dist-version @$(MAKE) -C git-gui TARDIR=../$(GIT_TARNAME)/git-gui dist-version
$(TAR) rf $(GIT_TARNAME).tar \ $(TAR) rf $(GIT_TARNAME).tar \
$(GIT_TARNAME)/git.spec \ $(GIT_TARNAME)/git.spec \
$(GIT_TARNAME)/configure \
$(GIT_TARNAME)/version \ $(GIT_TARNAME)/version \
$(GIT_TARNAME)/git-gui/version $(GIT_TARNAME)/git-gui/version
@rm -rf $(GIT_TARNAME) @rm -rf $(GIT_TARNAME)