commit f6df3f34ef9620bbc51d32e5c204c6238898021b
parent 60d9b06ca4f3993f3539a4dcb1b852814e509fce
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 18 Oct 2023 15:20:05 +0200
Displays the sed directives that generate the pc file
There's no particular advantage to hiding them, and it's normal to see
what's going on.
Diffstat:
| M | Makefile | | | 29 | ++++++++++++++--------------- |
1 file changed, 14 insertions(+), 15 deletions(-)
diff --git a/Makefile b/Makefile
@@ -126,13 +126,12 @@ API_SIMD256=\
API = $(API_SIMD$(SIMD_WIDTH))
pkg:
- @echo "Setup rsimd.pc"
- @sed -e 's#@PREFIX@#$(PREFIX)#g' \
- -e 's#@VERSION@#$(VERSION)#g' \
- -e 's#@SLEEF_VERSION@#$(SLEEF_VERSION)#g' \
- -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \
- -e 's#@CFLAGS_SIMD@#$(CFLAGS_SIMD)#g' \
- rsimd.pc.in > rsimd.pc
+ sed -e 's#@PREFIX@#$(PREFIX)#g' \
+ -e 's#@VERSION@#$(VERSION)#g' \
+ -e 's#@SLEEF_VERSION@#$(SLEEF_VERSION)#g' \
+ -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \
+ -e 's#@CFLAGS_SIMD@#$(CFLAGS_SIMD)#g' \
+ rsimd.pc.in > rsimd.pc
# Remove the include directive rather than setting it to "./src". to prevent
# the source directory from having a higher priority than the system include
@@ -143,14 +142,14 @@ pkg:
# header file allowing it to be distinguished from the header of the standard
# library
rsimd-local.pc: rsimd.pc.in
- @sed -e '1,2d'\
- -e 's#^libdir=.*#libdir=./#'\
- -e 's#@VERSION@#$(VERSION)#g' \
- -e 's#@SLEEF_VERSION@#$(SLEEF_VERSION)#g' \
- -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \
- -e 's#@CFLAGS_SIMD@#$(CFLAGS_SIMD)#g' \
- -e 's#-I$${includedir}##g'\
- rsimd.pc.in > $@
+ sed -e '1,2d'\
+ -e 's#^libdir=.*#libdir=./#'\
+ -e 's#@VERSION@#$(VERSION)#g' \
+ -e 's#@SLEEF_VERSION@#$(SLEEF_VERSION)#g' \
+ -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \
+ -e 's#@CFLAGS_SIMD@#$(CFLAGS_SIMD)#g' \
+ -e 's#-I$${includedir}##g'\
+ rsimd.pc.in > $@
install__: build_library pkg
@$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib" $(LIBNAME)