diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-09-23 10:29:57 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-09-23 22:06:47 (GMT) |
commit | 7c3c0a99cc22279f7060ff2e73befbcd7d449896 (patch) | |
tree | 9c6b338e18ae04f8f13a9c44129d91dd5d043e5f /config.mak.uname | |
parent | ea47e59fe321241848e0367de9fe3289290e8324 (diff) | |
download | git-7c3c0a99cc22279f7060ff2e73befbcd7d449896.zip git-7c3c0a99cc22279f7060ff2e73befbcd7d449896.tar.gz git-7c3c0a99cc22279f7060ff2e73befbcd7d449896.tar.bz2 |
Makefile: stop hardcoding {command,config}-list.h
Change various places that hardcode the names of these two files to
refer to either $(GENERATED_H), or to a new generated-hdrs
target. That target is consistent with the *-objs targets I recently
added in 029bac01a8 (Makefile: add {program,xdiff,test,git,fuzz}-objs
& objects targets, 2021-02-23).
A subsequent commit will add a new generated hook-list.h. By doing
this refactoring we'll only need to add the new file to the
GENERATED_H variable, not EXCEPT_HDRS, the vcbuild/README etc.
Hardcoding command-list.h there seems to have been a case of
copy/paste programming in 976aaedca0 (msvc: add a Makefile target to
pre-generate the Visual Studio solution, 2019-07-29). The
config-list.h was added later in 709df95b78 (help: move
list_config_help to builtin/help, 2020-04-16).
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'config.mak.uname')
-rw-r--r-- | config.mak.uname | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config.mak.uname b/config.mak.uname index 76516aa..8aac06e 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -735,9 +735,9 @@ vcxproj: echo '</Project>') >git-remote-http/LinkOrCopyRemoteHttp.targets git add -f git/LinkOrCopyBuiltins.targets git-remote-http/LinkOrCopyRemoteHttp.targets - # Add command-list.h and config-list.h - $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 config-list.h command-list.h - git add -f config-list.h command-list.h + # Add generated headers + $(MAKE) MSVC=1 SKIP_VCPKG=1 prefix=/mingw64 $(GENERATED_H) + git add -f $(GENERATED_H) # Add scripts rm -f perl/perl.mak |