$OpenBSD$

Version the SHLIB.
Don't build the SHLIB again during fake.
Install both static and shared lib.

Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -73,7 +73,7 @@ $(OUT)/libmujs.a: $(OUT)/libmujs.o
 	$(AR) cru $@ $^
 
 $(OUT)/libmujs.so: one.c $(HDRS)
-	$(CC) $(CFLAGS) -fPIC -shared -o $@ $< -lm
+	$(CC) $(CFLAGS) -fPIC -shared -o $@.${LIBmujs_VERSION} $< -lm
 
 $(OUT)/mujs: $(OUT)/libmujs.o $(OUT)/main.o
 	$(CC) $(LDFLAGS) -o $@ $^ -lm
@@ -90,7 +90,7 @@ $(OUT)/mujs.pc:
 watch:
 	@ while ! inotifywait -q -e modify $(SRCS) $(HDRS) ; do time -p $(MAKE) ; done
 
-install-common: release
+install-common:
 	install -d $(DESTDIR)$(incdir)
 	install -d $(DESTDIR)$(libdir)
 	install -d $(DESTDIR)$(libdir)/pkgconfig
@@ -103,9 +103,9 @@ install-static: install-common
 	install -m 644 build/release/libmujs.a $(DESTDIR)$(libdir)
 
 install-shared: install-common
-	install -m 755 build/release/libmujs.so $(DESTDIR)$(libdir)
+	install -m 755 build/release/libmujs.so.${LIBmujs_VERSION} $(DESTDIR)$(libdir)
 
-install: install-static
+install: install-static install-shared
 
 tarball:
 	git archive --format=zip --prefix=mujs-$(VERSION)/ HEAD > mujs-$(VERSION).zip
