Skip to content

Commit

Permalink
Make tools/ directory first-class citizen.
Browse files Browse the repository at this point in the history
Tools directory being separate is just a historical
coincidence.  Build and install together with the main
directory, just like the clean target does. 

Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Aug 12, 2005
1 parent 3e38650 commit 704a66f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,6 @@ install: $(PROG) $(SCRIPTS)
$(INSTALL) -m755 -d $(DESTDIR)$(bindir)
$(INSTALL) $(PROG) $(SCRIPTS) $(DESTDIR)$(bindir)
$(MAKE) -C templates install

install-tools:
$(MAKE) -C tools install

install-doc:
Expand Down
3 changes: 2 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ install: build
dh_clean -k
dh_installdirs

make dest=$(DESTDIR) prefix=$(PREFIX) mandir=$(MANDIR) install install-tools install-doc
make dest=$(DESTDIR) prefix=$(PREFIX) mandir=$(MANDIR) \
install install-doc

mkdir -p $(DOC_DESTDIR)
find $(DOC) '(' -name '*.txt' -o -name '*.html' ')' -exec install {} $(DOC_DESTDIR) ';'
Expand Down
2 changes: 1 addition & 1 deletion git-core.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ make prefix=%{_prefix} all %{!?_without_docs: doc}
%install
rm -rf $RPM_BUILD_ROOT
make dest=$RPM_BUILD_ROOT prefix=%{_prefix} mandir=%{_mandir} \
install install-tools %{!?_without_docs: install-doc}
install %{!?_without_docs: install-doc}

%clean
rm -rf $RPM_BUILD_ROOT
Expand Down

0 comments on commit 704a66f

Please sign in to comment.