]> git.ipfire.org Git - thirdparty/git.git/commit
contrib/credential: harmonize Makefiles
authorThomas Uhle <thomas.uhle@mailbox.tu-dresden.de>
Mon, 20 Oct 2025 18:20:22 +0000 (20:20 +0200)
committerJunio C Hamano <gitster@pobox.com>
Mon, 20 Oct 2025 19:34:57 +0000 (12:34 -0700)
commit9b8ff6dc9ac876cc6d0c8eb68bdcf944e844e4c1
tree310b791a1bf1be651e918253087fb4cd19bff396
parent4b71b294773cc4f7fe48ec3a70079aa8783f373d
contrib/credential: harmonize Makefiles

Update these Makefiles to be in line with other Makefiles from contrib
such as for contacts or subtree by making the following changes:

* Make the default settings after including config.mak.autogen and
  config.mak.
* Add the missing $(CPPFLAGS) to the compiler command as well as the
  missing $(CFLAGS) to the linker command.
* Use a pattern rule for compilation instead of a dedicated rule for
  each compile unit.
* Get rid of $(MAIN), $(SRCS) and $(OBJS) and simply use their values
  such as git-credential-libsecret and git-credential-libsecret.o.
* Strip @ from $(RM) to let the clean target rule be verbose.
* Define .PHONY for all special targets (all, clean).

Signed-off-by: Thomas Uhle <thomas.uhle@mailbox.tu-dresden.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/libsecret/Makefile
contrib/credential/osxkeychain/Makefile