star-2d

Contour structuring for efficient 2D geometric queries
git clone git://git.meso-star.fr/star-2d.git
Log | Files | Refs | README | LICENSE

commit f97a65dbf5bd1160b74a2549f5d1509ba373bb42
parent 877d146292c2429b87856ca18324e424ad140458
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Fri, 20 Oct 2023 16:30:24 +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:
MMakefile | 28+++++++++++++---------------
1 file changed, 13 insertions(+), 15 deletions(-)

diff --git a/Makefile b/Makefile @@ -76,28 +76,26 @@ libs2d.o: $(OBJ) # Installation ################################################################################ pkg: - @echo "Setup s2d.pc" - @sed -e 's#@PREFIX@#$(PREFIX)#g' \ - -e 's#@VERSION@#$(VERSION)#g' \ - -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ - -e 's#@EMBREE_VERSION@#$(EMBREE_VERSION)#g' \ - s2d.pc.in > s2d.pc + sed -e 's#@PREFIX@#$(PREFIX)#g' \ + -e 's#@VERSION@#$(VERSION)#g' \ + -e 's#@RSYS_VERSION@#$(RSYS_VERSION)#g' \ + -e 's#@EMBREE_VERSION@#$(EMBREE_VERSION)#g' \ + s2d.pc.in > s2d.pc s2d-local.pc: s2d.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#@EMBREE_VERSION@#$(EMBREE_VERSION)#g'\ - s2d.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#@EMBREE_VERSION@#$(EMBREE_VERSION)#g'\ + s2d.pc.in > $@ install: build_library pkg @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib" $(LIBNAME) @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/lib/pkgconfig" s2d.pc @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/include/star" src/s2d.h - @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/share/doc/star-2d"\ - COPYING README.md + @$(SHELL) make.sh install "$(DESTDIR)$(PREFIX)/share/doc/star-2d" COPYING README.md uninstall: rm -f "$(DESTDIR)$(PREFIX)/lib/$(LIBNAME)"