From: Junio C Hamano <gitster@pobox.com>
To: Christian Stimming <stimming@tuhh.de>
Cc: Paul Mackerras <paulus@samba.org>, git@vger.kernel.org
Subject: Re: [PATCH] gitk: Update and fix Makefile
Date: Tue, 08 Jan 2008 14:54:54 -0800 [thread overview]
Message-ID: <7vk5mkq669.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <200801082154.21282.stimming@tuhh.de> (Christian Stimming's message of "Tue, 8 Jan 2008 21:54:20 +0100")
Christian Stimming <stimming@tuhh.de> writes:
> -# 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.
next prev parent reply other threads:[~2008-01-08 22:55 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-08 20:54 [PATCH] gitk: Update and fix Makefile Christian Stimming
2008-01-08 22:54 ` Junio C Hamano [this message]
2008-01-09 3:43 ` Paul Mackerras
2008-01-09 8:19 ` Junio C Hamano
2008-01-11 8:57 ` Junio C Hamano
2008-01-11 9:06 ` Junio C Hamano
2008-01-11 23:36 ` Paul Mackerras
2008-01-11 23:57 ` Junio C Hamano
2008-01-12 5:04 ` Jeff King
2008-01-13 21:06 ` [PATCH] gitk: Update and fix Makefile (spelling fix) Christian Stimming
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vk5mkq669.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=paulus@samba.org \
--cc=stimming@tuhh.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.