git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH 1/1] subtree: add build targets 'man' and 'html'

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Oct 12, 2018, 08:08 UTC
Message-ID
<nycvar.QRO.7.76.6.1810121006180.45@tvgsbejvaqbjf.bet>
In-Reply-To
<xmqqmurmmt9j.fsf@gitster-ct.c.googlers.com>
On Wed, 10 Oct 2018, Junio C Hamano wrote:
Show 15 quoted lines
> Christian Hesse <list@eworm.de> writes:
> 
> > From: Christian Hesse <mail@eworm.de>
> >
> > We have targets 'install-man' and 'install-html', let's add build
> > targets as well.
> >   ...
> > +man: $(GIT_SUBTREE_DOC)
> > +
> > +html: $(GIT_SUBTREE_HTML)
> > +
> 
> As 'contrib' material without real maintenance, I do not care too
> deeply, but shouldn't this change be more like this to avoid
> duplicating the list of targets?

Ævar mentioned that he'd like this to graduate from contrib into core, and I had briefly looked at making subtree a built-in to that end. IOW please do not get too used to subtree being in contrib.

Ciao, Dscho

Show 38 quoted lines
> 
> 
> diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
> index 5c6cc4ab2c..4a10a020a0 100644
> --- a/contrib/subtree/Makefile
> +++ b/contrib/subtree/Makefile
> @@ -59,17 +59,21 @@ $(GIT_SUBTREE): $(GIT_SUBTREE_SH)
>  
>  doc: $(GIT_SUBTREE_DOC) $(GIT_SUBTREE_HTML)
>  
> +man: $(GIT_SUBTREE_DOC)
> +
> +html: $(GIT_SUBTREE_HTML)
> +
>  install: $(GIT_SUBTREE)
>  	$(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
>  	$(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(gitexecdir)
>  
>  install-doc: install-man install-html
>  
> -install-man: $(GIT_SUBTREE_DOC)
> +install-man: man
>  	$(INSTALL) -d -m 755 $(DESTDIR)$(man1dir)
>  	$(INSTALL) -m 644 $^ $(DESTDIR)$(man1dir)
>  
> -install-html: $(GIT_SUBTREE_HTML)
> +install-html: html
>  	$(INSTALL) -d -m 755 $(DESTDIR)$(htmldir)
>  	$(INSTALL) -m 644 $^ $(DESTDIR)$(htmldir)
>  
> @@ -94,4 +98,4 @@ clean:
>  	$(RM) $(GIT_SUBTREE)
>  	$(RM) *.xml *.html *.1
>  
> -.PHONY: FORCE
> +.PHONY: FORCE man html install-man install-html
> 
> 
Previous: Junio C HamanoNext: Christian Hesse
Message 3 of 12 in “subtree: add build targets 'man' and 'html'”
  1. 1/1 subtree: add build targets 'man' and 'html'Christian Hesse, Oct 7, 2018
  2. Junio C HamanoOct 10, 2018
  3. Johannes SchindelinOct 12, 2018
  4. Christian HesseOct 15, 2018
  5. Junio C HamanoOct 16, 2018
  6. Junio C HamanoOct 16, 2018
  7. 1/1 subtree: make install targets depend on build targetsChristian Hesse, Oct 16, 2018
  8. Junio C HamanoOct 16, 2018
  9. Jonathan NiederOct 17, 2018
  10. Junio C HamanoOct 18, 2018
  11. Junio C HamanoOct 18, 2018
  12. Christian HesseOct 18, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.