Fix build rules for debian package.

Run install-tools target to install the tools to accept e-mail
patches.  Also clean up the main Makefile a bit.

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-08-06 22:29:21 -07:00
parent d5928d6026
commit f29eaed12f
2 changed files with 6 additions and 6 deletions

View file

@ -234,16 +234,16 @@ rpm: dist
$(RPMBUILD) -ta git-core-$(GIT_VERSION).tar.gz
deb: dist
rm -rf git-core-$(GIT_VERSION)
tar zxf git-core-$(GIT_VERSION).tar.gz
cd git-core-$(GIT_VERSION) && fakeroot debian/rules binary
rm -rf $(GIT_TARNAME)
tar zxf $(GIT_TARNAME).tar.gz
cd $(GIT_TARNAME) && fakeroot debian/rules binary
### Cleaning rules
clean:
rm -f *.o mozilla-sha1/*.o ppc/*.o $(PROG) $(LIB_FILE)
rm -f git-core-*.tar.gz git-core.spec git-core-$(GIT_VERSION)-*.deb
rm -rf git-core-$(GIT_VERSION)
rm -f $(GIT_TARNAME).tar.gz git-core.spec git-core_$(GIT_VERSION)-*.deb
rm -rf $(GIT_TARNAME)
$(MAKE) -C tools/ clean
$(MAKE) -C Documentation/ clean
$(MAKE) -C templates/ clean

2
debian/rules vendored
View file

@ -56,7 +56,7 @@ install: build
dh_clean -k
dh_installdirs
make dest=$(DESTDIR) prefix=$(PREFIX) mandir=$(MANDIR) install install-doc
make dest=$(DESTDIR) prefix=$(PREFIX) mandir=$(MANDIR) install install-tools install-doc
mkdir -p $(DOC_DESTDIR)
find $(DOC) '(' -name '*.txt' -o -name '*.html' ')' -exec install {} $(DOC_DESTDIR) ';'