commit f195705a0ecd01fe515dc1899c52031aa1c256c6 parent 31bbafaafcfecbeaa0b8b54cca4cb87703d79e4e Author: Vincent Forest <vincent.forest@meso-star.com> Date: Thu, 19 Oct 2023 12:16:19 +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 | | | 30 | ++++++++++++++---------------- |
1 file changed, 14 insertions(+), 16 deletions(-)
diff --git a/Makefile b/Makefile @@ -75,29 +75,27 @@ libstar-sp.o: $(OBJ) # Installation ################################################################################ pkg: - @echo "Setup star-sp.pc" - @sed -e 's#@PREFIX@#$(PREFIX)#g' \ - -e 's#@VERSION@#$(VERSION)#g' \ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ - -e 's#@RANDOM123_VERSION@#$(RANDOM123_VERSION)#g' \ - star-sp.pc.in > star-sp.pc + sed -e 's#@PREFIX@#$(PREFIX)#g' \ + -e 's#@VERSION@#$(VERSION)#g' \ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ + -e 's#@RANDOM123_VERSION@#$(RANDOM123_VERSION)#g' \ + star-sp.pc.in > star-sp.pc star-sp-local.pc: config.mk star-sp.pc.in - @sed -e '1d'\ - -e 's#^includedir=.*#includedir=./src/#'\ - -e 's#^libdir=.*#libdir=./#'\ - -e 's#@PREFIX@#$(PREFIX)#g'\ - -e 's#@VERSION@#$(VERSION)#g'\ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ - -e 's#@RANDOM123_VERSION@#$(RANDOM123_VERSION)#g'\ - star-sp.pc.in > $@ + sed -e '1d'\ + -e 's#^includedir=.*#includedir=./src/#'\ + -e 's#^libdir=.*#libdir=./#'\ + -e 's#@PREFIX@#$(PREFIX)#g'\ + -e 's#@VERSION@#$(VERSION)#g'\ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g'\ + -e 's#@RANDOM123_VERSION@#$(RANDOM123_VERSION)#g'\ + star-sp.pc.in > $@ install: build_library pkg @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib" $(LIBNAME) @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib/pkgconfig" star-sp.pc @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/include/star" src/ssp.h - @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/share/doc/star-sp" \ - COPYING README.md + @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/share/doc/star-sp" COPYING README.md uninstall: rm -f $(DESTDIR)$(PREFIX)/lib/libstar-sp.so