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

Re: [PATCH] gitk: Update and fix Makefile

From
Junio C Hamano <gitster@pobox.com>
Date
Jan 8, 2008, 22:54 UTC
Message-ID
<7vk5mkq669.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<200801082154.21282.stimming@tuhh.de>
Christian Stimming <stimming@tuhh.de> writes:
Show 7 quoted lines
> -# From here on, these are needed in git.git/gitk/Makefile.
> +prefix ?= $(HOME)
> +bindir ?= $(prefix)/bin
> +sharedir ?= $(prefix)/share
>  gitk_libdir   ?= $(sharedir)/gitk/lib
>  msgsdir    ?= $(gitk_libdir)/msgs
>  msgsdir_SQ  = $(subst ','\'',$(msgsdir))

I see somwhat funny spacing there. I'd suggest giving up aligning with spaces and consistently saying "var ?= val" instead.

	I am reading the diff between the gitk-git/Makefile
	before and after merging gitk with your patch and
	the last three lines above are not context but additions
	from my point of view.
> +install:: all
> +	$(INSTALL) gitk-wish '$(DESTDIR_SQ)$(bindir_SQ)'/gitk
> +	$(INSTALL) -d '$(DESTDIR_SQ)$(msgsdir_SQ)'
> +	$(foreach p,$(ALL_MSGFILES), $(INSTALL) $p '$(DESTDIR_SQ)$(msgsdir_SQ)' &&) true

This is cute and correct (except I would have spelled "true" as ":" myself). I think we need to fix a few such constructs that use ";" instead of "&&" in Makefile in git.git.

> +uninstall::
> +	$(foreach p,$(ALL_MSGFILES), $(RM) '$(DESTDIR_SQ)$(msgsdir_SQ)'/$(notdir $p) &&) true
> +	$(RM) '$(DESTDIR_SQ)$(bindir_SQ)'/gitk

I have a mild dislike against uninstall target, but that's Paul's call.

> +clean::
> +	$(RM) gitk-wish po/*.msg
And this makes me wonder if the last token should be $(ALL_MSGFILES).
Other than that, Ack from me.
Thanks.
Previous: Christian StimmingNext: Paul Mackerras
Message 2 of 10 in “gitk: Update and fix Makefile”
  1. gitk: Update and fix MakefileChristian Stimming, Jan 8, 2008
  2. Junio C HamanoJan 8, 2008
  3. Paul MackerrasJan 9, 2008
  4. Junio C HamanoJan 9, 2008
  5. Junio C HamanoJan 11, 2008
  6. Junio C HamanoJan 11, 2008
  7. Paul MackerrasJan 11, 2008
  8. Junio C HamanoJan 11, 2008
  9. Jeff KingJan 12, 2008
  10. Christian StimmingJan 13, 2008

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.