libsecret/Makefile: add install target#1970
Open
hickford wants to merge 1 commit intogitgitgadget:masterfrom
Open
libsecret/Makefile: add install target#1970hickford wants to merge 1 commit intogitgitgadget:masterfrom
hickford wants to merge 1 commit intogitgitgadget:masterfrom
Conversation
|
There are issues in commit dbe46e5: |
dbe46e5 to
e5bd930
Compare
Author
|
/submit |
|
Submitted as pull.1970.git.1757623086030.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
|
On the Git mailing list, Junio C Hamano wrote (reply to this): "M Hickford via GitGitGadget" <gitgitgadget@gmail.com> writes:
> From: M Hickford <mirth.hickford@gmail.com>
>
> Signed-off-by: M Hickford <mirth.hickford@gmail.com>
> ---
> libsecret/Makefile: add install target
>
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-1970%2Fhickford%2Flibsecret-makefile-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-1970/hickford/libsecret-makefile-v1
> Pull-Request: https://github.com/gitgitgadget/git/pull/1970
>
> contrib/credential/libsecret/Makefile | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/contrib/credential/libsecret/Makefile b/contrib/credential/libsecret/Makefile
> index 97ce9c92fb..6fe70065ab 100644
> --- a/contrib/credential/libsecret/Makefile
> +++ b/contrib/credential/libsecret/Makefile
> @@ -26,3 +26,7 @@ $(MAIN): $(OBJS)
>
> clean:
> @$(RM) $(MAIN) $(OBJS)
> +
> +install: $(MAIN)
> + $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
> + $(INSTALL) -m 755 $(MAIN) $(DESTDIR)$(gitexecdir)
>
> base-commit: 4975ec3473b4bc61bc8a3df1ef29d0b7e7959e87
Hmph, the existing make macros used in the Makefile like $(RM),
$(CC), etc. are all defined in the same Makefile, and the only
things this Makefile includes are config.mak and its autogen variant
if they exist, neither of which are the source of INSTALL or
gitexecdir that are used in the main Makefile by being defined
there.
It seems that existing Makefiles in contrib/ like the one in subtree
and contacts, all define their own. Perhaps you can mimick them by
adding things like
prefix ?= /usr/local
gitexecdir ?= $(prefix)/libexec/git-core
# this should be set to a 'standard' bsd-type install program
INSTALL ?= install
that they commonly add for now to make it work? Without anything
like that, I cannot quite see how it would work with your patch
alone.
And then later we of course should clean things up by splitting the
definitions done in the main Makefile into a common file that can be
included (e.g. path+tool+definitions.mak file), include it from the
main Makefile, and then have contrib/*/Makefile also include it so
that the duplicated definitions like we see in Makefiles in subtree
and contacts (there may be others; they just were the first hits in
my "git ls-files | grep /Makefile").
|
e5bd930 to
f77649d
Compare
|
There are issues in commit f77649d: |
Packaging git-credential-libsecret is slightly more complex than git-subtree. Add install target similar to that in contrib/subtree/Makefile. Signed-off-by: M Hickford <mirth.hickford@gmail.com>
f77649d to
d90639d
Compare
webstech
added a commit
that referenced
this pull request
Nov 5, 2025
…lint-plugin-prettier-5.5.4 build(deps-dev): bump eslint-plugin-prettier from 5.5.3 to 5.5.4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.