Skip to content

Commit

Permalink
Store INCDIR directly in .pc file rather than indirecting it via PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
leonerd committed Sep 21, 2021
1 parent ba02184 commit 33d7682
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)," <vterm.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/vterm.pc
sed -e "s,@INCDIR@,$(INCDIR)," -e "s,@LIBDIR@,$(LIBDIR)," -e "s,@VERSION@,$(VERSION)," <vterm.pc.in >$(DESTDIR)$(LIBDIR)/pkgconfig/vterm.pc

install-lib: $(LIBRARY)
install -d $(DESTDIR)$(LIBDIR)
Expand Down
3 changes: 1 addition & 2 deletions vterm.pc.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
prefix=@PREFIX@
libdir=@LIBDIR@
includedir=${prefix}/include
includedir=@INCDIR@

Name: vterm
Description: Abstract VT220/Xterm/ECMA-48 emulation library
Expand Down

0 comments on commit 33d7682

Please sign in to comment.