$OpenBSD$
--- lib/Makefile.orig	Sat Jun 17 04:25:51 2000
+++ lib/Makefile	Mon Oct 24 18:59:36 2016
@@ -12,7 +12,7 @@ all: toascii
 
 install: all
 	cp unmarkup emptydefn toascii nwmtime h2a btdefn $(LIB)
-	sed 's@|LIBDIR|@$(LIB)@g' pipedocs > $(LIB)/pipedocs
+	sed 's@|LIBDIR|@$(LIBNAME)@g' pipedocs > $(LIB)/pipedocs
 	chmod +x $(LIB)/pipedocs
 
 checkin:
