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

Re: [PATCH] Move test-* to t/helper/ subdirectory

From
Duy Nguyen <pclouds@gmail.com>
Date
Apr 16, 2016, 00:08 UTC
Message-ID
<CACsJy8AqoRq3SRATvP6Ww3s9cnzkSKCvhEA8UbAVdhQF_=aYew@mail.gmail.com>
In-Reply-To
<xmqqa8kudcnn.fsf@gitster.mtv.corp.google.com>
On Sat, Apr 16, 2016 at 12:06 AM, Junio C Hamano <gitster@pobox.com> wrote:
Show 12 quoted lines
> Junio C Hamano <gitster@pobox.com> writes:
>
>> Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
>>
>>> This keeps top dir a bit less crowded. And because these programs are
>>> for testing purposes, it makes sense that they stay somewhere in t/
>>
>> But leaves many *.o files after "make clean".  Even "distclean" does
>> not clean them.
>
> Perhaps something like this as a preparatory patch, to protect us
> from future breakages similar to this change.
Yes. Much better than adding t/helper/*.o there. Thanks.
Show 32 quoted lines
>
> -- >8 --
> Subject: Makefile: clean *.o files we create
>
> The part that removes object files in the 'clean' target predates
> various Makefile macros that list object files we create, and
> instead removes the objects with shell glob, perpetually requiring
> updates whenever a new location that builds object files is added.
>
> Simplify the target by removing $(OBJECTS), which is supposed to
> have all the objects we create during the build.
>
> Signed-off-by: Junio C Hamano <gitster@pobox.com>
> ---
>  Makefile | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/Makefile b/Makefile
> index fe0bf7d..69d32bf 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2456,8 +2456,8 @@ profile-clean:
>         $(RM) $(addsuffix *.gcno,$(addprefix $(PROFILE_DIR)/, $(object_dirs)))
>
>  clean: profile-clean coverage-clean
> -       $(RM) *.o *.res refs/*.o block-sha1/*.o ppc/*.o compat/*.o compat/*/*.o
> -       $(RM) xdiff/*.o vcs-svn/*.o ewah/*.o builtin/*.o
> +       $(RM) *.res
> +       $(RM) $(OBJECTS)
>         $(RM) $(LIB_FILE) $(XDIFF_LIB) $(VCSSVN_LIB)
>         $(RM) $(ALL_PROGRAMS) $(SCRIPT_LIB) $(BUILT_INS) git$X
>         $(RM) $(TEST_PROGRAMS) $(NO_INSTALL)
-- 
Duy
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 16 in “Move test-* to t/helper/ subdirectory”
  1. Move test-* to t/helper/ subdirectoryNguyễn Thái Ngọc Duy, Apr 13, 2016
  2. Junio C HamanoApr 15, 2016
  3. Junio C HamanoApr 15, 2016
  4. Duy NguyenApr 16, 2016
  5. Junio C HamanoApr 26, 2016
  6. Duy NguyenApr 27, 2016
  7. Duy NguyenApr 27, 2016
  8. Junio C HamanoApr 27, 2016
  9. Duy NguyenMay 1, 2016
  10. Duy NguyenMay 1, 2016
  11. Junio C HamanoMay 2, 2016
  12. Duy NguyenMay 3, 2016
  13. Duy NguyenMay 8, 2016
  14. Junio C HamanoMay 9, 2016
  15. Duy NguyenMay 10, 2016
  16. Junio C HamanoMay 10, 2016

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.