diff options
author | Eddy Jansson <eddy@klopper.net> | 2021-07-24 11:43:35 (GMT) |
---|---|---|
committer | Eddy Jansson <eddy@klopper.net> | 2021-07-24 14:05:15 (GMT) |
commit | c1f514f3dbc22e56b2d6821f461aa058bd3104c3 (patch) | |
tree | 0f84df5b5ac8a865562719d5e41bda97ba3c5bbd /lib/Makefile | |
parent | c240126068b780d927c126bb6a16cdeb92c35d77 (diff) | |
download | lz4-c1f514f3dbc22e56b2d6821f461aa058bd3104c3.zip lz4-c1f514f3dbc22e56b2d6821f461aa058bd3104c3.tar.gz lz4-c1f514f3dbc22e56b2d6821f461aa058bd3104c3.tar.bz2 |
Expand use of pkg-config variables.
Change pkg-config generation such that the path variables,
not their values, are used in the definitions of Libs and Cflags,
and that $prefix is substituted into libdir and includedir iff
they start with its value.
This makes it easier to modify the already installed file if necessary.
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Makefile b/lib/Makefile index 344120a..45f33e4 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -175,6 +175,7 @@ liblz4.pc: liblz4.pc.in Makefile -e 's|@LIBDIR@|$(libdir)|' \ -e 's|@INCLUDEDIR@|$(includedir)|' \ -e 's|@VERSION@|$(LIBVER)|' \ + -e 's|=${prefix}/|=$${prefix}/|' \ $< >$@ install: lib liblz4.pc |