commit 5324e641b47ed7fa56344a5f5c8cf908e646c2b2 parent 8580d0eb70ea9f9158f602f4627105e54dd74a3d Author: Vincent Forest <vincent.forest@meso-star.com> Date: Thu, 19 Oct 2023 11:15:13 +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 | | | 32 | +++++++++++++++----------------- |
1 file changed, 15 insertions(+), 17 deletions(-)
diff --git a/Makefile b/Makefile @@ -70,30 +70,28 @@ libs3dstl.o: $(OBJ) # Installation ################################################################################ pkg: - @echo "Setup s3dstl.pc" - @sed -e 's#@PREFIX@#$(PREFIX)#g'\ - -e 's#@VERSION@#$(VERSION)#g'\ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ - -e 's#@S3D_VERSION@#$(S3D_VERSION)#g'\ - -e 's#@SSTL_VERSION@#$(SSTL_VERSION)#g'\ - s3dstl.pc.in > s3dstl.pc + sed -e 's#@PREFIX@#$(PREFIX)#g'\ + -e 's#@VERSION@#$(VERSION)#g'\ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ + -e 's#@S3D_VERSION@#$(S3D_VERSION)#g'\ + -e 's#@SSTL_VERSION@#$(SSTL_VERSION)#g'\ + s3dstl.pc.in > s3dstl.pc s3dstl-local.pc: s3dstl.pc.in - @sed -e '1d'\ - -e 's#^includedir=.*#includedir=./src/#'\ - -e 's#^libdir=.*#libdir=./#'\ - -e 's#@VERSION@#$(VERSION)#g'\ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ - -e 's#@S3D_VERSION@#$(S3D_VERSION)#g'\ - -e 's#@SSTL_VERSION@#$(SSTL_VERSION)#g'\ - s3dstl.pc.in > $@ + sed -e '1d'\ + -e 's#^includedir=.*#includedir=./src/#'\ + -e 's#^libdir=.*#libdir=./#'\ + -e 's#@VERSION@#$(VERSION)#g'\ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ + -e 's#@S3D_VERSION@#$(S3D_VERSION)#g'\ + -e 's#@SSTL_VERSION@#$(SSTL_VERSION)#g'\ + s3dstl.pc.in > $@ install: build_library pkg @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib" $(LIBNAME) @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib/pkgconfig/" s3dstl.pc @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/include/star" src/s3dstl.h - @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/share/doc/star-3dstl"\ - COPYING README.md + @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/share/doc/star-3dstl" COPYING README.md uninstall: rm -f "$(DESTDIR)$(PREFIX)/lib/libs3dstl.so"