Skip to content

Commit

Permalink
Simplify the plumbing for re2.pc.
Browse files Browse the repository at this point in the history
Change-Id: I6503b73978c9b2f4693422b62a74d4e1c75409c7
Reviewed-on: https://code-review.googlesource.com/c/re2/+/44491
Reviewed-by: Paul Wankadia <[email protected]>
  • Loading branch information
junyer committed Aug 26, 2019
1 parent be0e130 commit 960cdcc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,8 @@ install: obj/libre2.a obj/so/libre2.$(SOEXT)
ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXTVER)
ln -sf libre2.$(SOEXTVER00) $(DESTDIR)$(libdir)/libre2.$(SOEXT)
$(INSTALL_DATA) re2.pc $(DESTDIR)$(libdir)/pkgconfig/re2.pc
$(SED_INPLACE) -e "s#@prefix@#${prefix}#" $(DESTDIR)$(libdir)/pkgconfig/re2.pc
$(SED_INPLACE) -e "s#@exec_prefix@#${exec_prefix}#" $(DESTDIR)$(libdir)/pkgconfig/re2.pc
$(SED_INPLACE) -e "s#@includedir@#${includedir}#" $(DESTDIR)$(libdir)/pkgconfig/re2.pc
$(SED_INPLACE) -e "s#@libdir@#${libdir}#" $(DESTDIR)$(libdir)/pkgconfig/re2.pc
$(SED_INPLACE) -e "s#@includedir@#$(includedir)#" $(DESTDIR)$(libdir)/pkgconfig/re2.pc
$(SED_INPLACE) -e "s#@libdir@#$(libdir)#" $(DESTDIR)$(libdir)/pkgconfig/re2.pc

testinstall: static-testinstall shared-testinstall
@echo
Expand Down
2 changes: 0 additions & 2 deletions re2.pc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
includedir=@includedir@
libdir=@libdir@

Expand Down

0 comments on commit 960cdcc

Please sign in to comment.