vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit 30dbf990b82d9e6523de9d98d5ca4b70facc3ac2
parent 6a7db5d03f89ef195258ef80245747c0dffa294d
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Tue, 13 Dec 2016 20:58:12 +0100

build: fix Cygwin build

The simple method lpeg uses to create a shared library does not seem
to work in Cygwin.

Diffstat:
MGNUmakefile | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/GNUmakefile b/GNUmakefile @@ -130,7 +130,8 @@ dependency/build/liblpeg-extract: dependency/sources/$(LIBLPEG).tar.gz | depende touch $@ dependency/build/liblpeg-build: dependency/build/liblpeg-extract dependency/build/liblua-extract - cd $(dir $<)/$(LIBLPEG) && $(MAKE) LUADIR="../$(LIBLUA)/src" + # creating a shared object fails in Cygwin, we do not need it thus ignore the error + cd $(dir $<)/$(LIBLPEG) && $(MAKE) LUADIR="../$(LIBLUA)/src" || true cd $(dir $<)/$(LIBLPEG) && ar rcu liblpeg.a lpvm.o lpcap.o lptree.o lpcode.o lpprint.o && ranlib liblpeg.a touch $@