Repository navigation
fix: Installed pkg-config metadata with Make. - #922
Open
ShogunPanda wants to merge 1 commit into
Open
ShogunPanda wants to merge 1 commit into
ShogunPanda wants to merge 1 commit into
Conversation
Signed-off-by: Paolo Insogna <paolo@cowtech.it>
aduh95
reviewed
Dec 2, 2026
Comment on lines
+54
to
+61
| build/libllhttp.pc: libllhttp.pc.in package.json | ||
| mkdir -p build | ||
| sed -e 's|@CMAKE_INSTALL_PREFIX@|$(PREFIX)|g' \ | ||
| -e 's|@CMAKE_INSTALL_FULL_BINDIR@|$(BINDIR)|g' \ | ||
| -e 's|@CMAKE_INSTALL_FULL_LIBDIR@|$(LIBDIR)|g' \ | ||
| -e 's|@CMAKE_INSTALL_FULL_INCLUDEDIR@|$(INCLUDEDIR)|g' \ | ||
| -e "s|@PROJECT_VERSION@|$$(node -p "require('./package.json').version")|g" \ | ||
| $< > $@ |
Contributor
There was a problem hiding this comment.
Hum but why would you do that instead of using CMake? That feels brittle
aduh95
approved these changes
Dec 2, 2026
aduh95
left a comment
Contributor
There was a problem hiding this comment.
I guess that's fine, but IMO we'd better simply remove the install target in the Makefile to keep a single supported installation method (CMake)
This branch has not been deployed
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.
Summary
Generate and install
libllhttp.pcwithmake install, matching the pkg-config support provided by CMake.Changes
libllhttp.pc.inwith the package version and Make installation paths.$(LIBDIR)/pkgconfigwith mode 644.DESTDIRout of its contents.Additional Informations
AI-assisted work. All changes reviewed by a human.
Fixes #883.