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

Re: [PATCH v3 1/1] perl: fix installing modules from contrib

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 18, 2018, 21:44 UTC
Message-ID
<xmqq36zsgpfb.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180411065120.9432-1-mail@eworm.de>
Christian Hesse <mail@eworm.de> writes:
Show 11 quoted lines
> Commit 20d2a30f (Makefile: replace perl/Makefile.PL with simple make rules)
> removed a target that allowed Makefiles from contrib/ to get the correct
> install path. This introduces a new target for main Makefile and fixes
> installation for Mediawiki module.
>
> v2: Pass prefix as that can have influence as well, add single quotes
>     for _SQ variant.
> v3: Rename target, add to .PHONY.
>
> Signed-off-by: Christian Hesse <mail@eworm.de>
> ---

Thanks for rerolling. I should have made it a bit more clear that the say-* thing was merely a personal preference "I would be writing it that way if I were doing it", not a "You should write it this way when working on this project". I think .PHONY is still a good idea to have, even for only its documentation value (it is unlikely that anybody would create a file "perllibdir").

Let me queue this on top of the v2 queued in 'next' as an incremental update.

Thanks.
-- >8 --
From: Christian Hesse <mail@eworm.de>
SUbject: Makefile: mark perllibdir as a .PHONY target

This target should be marked as .PHONY, just like other targets that exist only for their side effects that do not create filesystem entities with the same name.

Signed-off-by: Christian Hesse <mail@eworm.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
---
 Makefile | 1 +
 1 file changed, 1 insertion(+)
diff --git a/Makefile b/Makefile
index 75b9ad3b48..b284eb20aa 100644
--- a/Makefile
+++ b/Makefile
@@ -1973,6 +1973,7 @@ GIT-PERL-DEFINES: FORCE
 		echo "$$FLAGS" >$@; \
 	    fi
 
+.PHONY: perllibdir
 perllibdir:
 	@echo '$(perllibdir_SQ)'
 
Previous: Christian HesseNext: Christian Hesse
Message 7 of 8 in “perl: fix installing modules from contrib”
  1. 1/1 perl: fix installing modules from contribChristian Hesse, Apr 3, 2018
  2. Ævar Arnfjörð BjarmasonApr 3, 2018
  3. Junio C HamanoApr 9, 2018
  4. 1/1 perl: fix installing modules from contribChristian Hesse, Apr 10, 2018
  5. Junio C HamanoApr 10, 2018
  6. 1/1 perl: fix installing modules from contribChristian Hesse, Apr 11, 2018
  7. Junio C HamanoApr 18, 2018
  8. Christian HesseApr 19, 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.