From patchwork Fri Apr 8 07:45:24 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elia Pinto X-Patchwork-Id: 12806207 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2E6F2C433F5 for ; Fri, 8 Apr 2022 07:45:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229513AbiDHHri (ORCPT ); Fri, 8 Apr 2022 03:47:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52610 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229471AbiDHHrh (ORCPT ); Fri, 8 Apr 2022 03:47:37 -0400 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 588B61DD3F9 for ; Fri, 8 Apr 2022 00:45:34 -0700 (PDT) Received: by mail-wr1-x42f.google.com with SMTP id v2so691120wrv.13 for ; Fri, 08 Apr 2022 00:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZZuEASKp7Y0N/rMdoW7RfUbV+4BJmvOBD0pyNPTdM3A=; b=mchIJQw1xlMLofTx2faMqz/XNeCg0xCoLppoJPPZloQw1cXL5OOznOOlZHktYdpSRm 0bnZPDiJPZ2jzKeYkXKOtMlwD1UdFS7SspO6uinTDMXY9JtL6EajaKNPCihFwi0++//r 46KntrLgCY4bzbs8VKGC6MQ6hMjbmTF1sKiYNe5EwIAgzvt5ClVrNuwsy9w3AvsFctPO vGssHbZtvKL5BZZlfGi3UigQZhNwxSaNUzUonXTPmtVmaA0H5CeQ4F+gYBAzI+2tQrWp 3kGVtzlAotu2YmgAbFUUEowvYK2vSQyWPsmakJgqN5jeHp+zA1KzKxYeLRzgM1kBc6xQ B6cg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ZZuEASKp7Y0N/rMdoW7RfUbV+4BJmvOBD0pyNPTdM3A=; b=Op+eE1CdqFTpwld6HYnCYh9KvVY43rGlp2dwovt/vvL+8oWuatAI27mod0wm2siELn c6w6wzQBmvB+cNzFtG1ygq5OPqzXaM/XO5bLAUNaYyYPc11Y9VJYh1EFG1Wnoiy2JIpZ DxbsKzL5jUvS6wWFx+lpbNEdNjeD+guvXozMkkFIAbwC5y81G0bBuLUalzonSyowX47r AevLowsoXfOHpxGO82lgIlx4e7sXIpXeWDL2GB+SnAe5RGHmUx8nJgcdaajGwEufdE+e jHRoK5ugytUDJ+7ou/fF4J4xl0tWgucWzD4uA37NQB9UKO0u4/VXgh8sT8fUUKvKjLqk VBOQ== X-Gm-Message-State: AOAM530GT/ydnqeVaPNJOG6ZqfXvpSd6L9VdFNYNaanpflU/G5LU+W/C YNPfqRsuzVSXMh24aojizhASz/JAz5k= X-Google-Smtp-Source: ABdhPJzJn3VGkpOcY1SmrDZezozlbs1oFbd6fwB8zZw4AUVMOn0dIiTS2JqLCIfJUTdakA8u4rWCoA== X-Received: by 2002:a05:6000:156e:b0:206:1205:166c with SMTP id 14-20020a056000156e00b002061205166cmr13906125wrz.37.1649403932372; Fri, 08 Apr 2022 00:45:32 -0700 (PDT) Received: from fedora35.example.com ([151.24.233.140]) by smtp.gmail.com with ESMTPSA id t9-20020a05600c198900b0038cb8b38f9fsm10120625wmq.21.2022.04.08.00.45.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Apr 2022 00:45:31 -0700 (PDT) From: Elia Pinto To: git@vger.kernel.org Cc: Elia Pinto Subject: [PATCH] Makefile: add help target Date: Fri, 8 Apr 2022 07:45:24 +0000 Message-Id: <20220408074524.156165-1-gitter.spiros@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Add a help target to the Makefile to be able to run make help, in the same way does the Makefiles self-generated by some build systems. The target list has been statically extracted from the git Makefile with a script and the results have been filtered in an essentially arbitrary way to leave the ones that i imagines most interesting and frequent for a developer. Signed-off-by: Elia Pinto --- The toy script I used is here https://gist.github.com/devzero2000/cb887a6ba2764f7234191e560b64b7c8#file-list_targets_makefile-sh Makefile | 63 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/Makefile b/Makefile index e8aba291d7..f6d6de2eb9 100644 --- a/Makefile +++ b/Makefile @@ -3448,3 +3448,66 @@ $(FUZZ_PROGRAMS): all $(XDIFF_OBJS) $(EXTLIBS) git.o $@.o $(LIB_FUZZING_ENGINE) -o $@ fuzz-all: $(FUZZ_PROGRAMS) + +# Help Target +help: + @echo "The following are some of the valid targets for this Makefile:" + @echo "... all (the default if no target is provided)" + @echo "... build-perl-script" + @echo "... build-python-script" + @echo "... build-sh-script" + @echo "... check" + @echo "... check-builtins" + @echo "... check-docs" + @echo "... check-sha1" + @echo "... clean" + @echo "... clean-perl-script" + @echo "... clean-python-script" + @echo "... clean-sh-script" + @echo "... coccicheck" + @echo "... coccicheck-pending" + @echo "... cocciclean" + @echo "... configure" + @echo "... coverage" + @echo "... coverage-clean" + @echo "... coverage-clean-results" + @echo "... coverage-compile" + @echo "... coverage-prove" + @echo "... coverage-report" + @echo "... coverage-test" + @echo "... coverage-untested-functions" + @echo "... cover_db" + @echo "... cover_db_html" + @echo "... cscope" + @echo "... dist" + @echo "... distclean" + @echo "... dist-doc" + @echo "... doc" + @echo "... fuzz-all" + @echo "... fuzz-commit-graph" + @echo "... fuzz-objs" + @echo "... fuzz-pack-headers" + @echo "... fuzz-pack-idx" + @echo "... html" + @echo "... info" + @echo "... install" + @echo "... man" + @echo "... pdf" + @echo "... perf" + @echo "... profile" + @echo "... profile-clean" + @echo "... profile-fast" + @echo "... profile-fast-install" + @echo "... profile-install" + @echo "... quick-install-doc" + @echo "... quick-install-html" + @echo "... quick-install-man" + @echo "... reconfigure" + @echo "... rpm" + @echo "... sparse" + @echo "... strip" + @echo "... style" + @echo "... tags" + @echo "... TAGS" + @echo "... test" +.PHONY : help