From 33d7682e971986af42e97d24c86a11d14bedb666 Mon Sep 17 00:00:00 2001 From: "Paul \"LeoNerd\" Evans" Date: Tue, 21 Sep 2021 11:04:31 +0100 Subject: [PATCH] Store INCDIR directly in .pc file rather than indirecting it via PREFIX --- Makefile | 2 +- vterm.pc.in | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 95ffede3..e3c1c396 100644 --- a/Makefile +++ b/Makefile @@ -100,7 +100,7 @@ install-inc: install -d $(DESTDIR)$(INCDIR) install -m644 $(HFILES) $(DESTDIR)$(INCDIR) install -d $(DESTDIR)$(LIBDIR)/pkgconfig - sed -e "s,@PREFIX@,$(PREFIX)," -e "s,@LIBDIR@,$(LIBDIR)," -e "s,@VERSION@,$(VERSION)," $(DESTDIR)$(LIBDIR)/pkgconfig/vterm.pc + sed -e "s,@INCDIR@,$(INCDIR)," -e "s,@LIBDIR@,$(LIBDIR)," -e "s,@VERSION@,$(VERSION)," $(DESTDIR)$(LIBDIR)/pkgconfig/vterm.pc install-lib: $(LIBRARY) install -d $(DESTDIR)$(LIBDIR) diff --git a/vterm.pc.in b/vterm.pc.in index c64c72dd..8d7e59a1 100644 --- a/vterm.pc.in +++ b/vterm.pc.in @@ -1,6 +1,5 @@ -prefix=@PREFIX@ libdir=@LIBDIR@ -includedir=${prefix}/include +includedir=@INCDIR@ Name: vterm Description: Abstract VT220/Xterm/ECMA-48 emulation library