shithub: libmujs

Download patch

ref: a6e84431280342551c126daa7f78eafbc25cab25
parent: ca22ed48824493c5d7270717172007b11f947a82
author: Tor Andersson <[email protected]>
date: Thu Jun 15 12:22:58 EDT 2017

Add separate install-static and install-shared targets.

--- a/Makefile
+++ b/Makefile
@@ -69,17 +69,23 @@
 	@ echo >> $@ Libs: -L$(libdir) -lmujs
 	@ echo >> $@ Libs.private: -lm
 
-install: release
+install-common: release
 	install -d $(DESTDIR)$(incdir)
 	install -d $(DESTDIR)$(libdir)
 	install -d $(DESTDIR)$(libdir)/pkgconfig
 	install -d $(DESTDIR)$(bindir)
 	install -m 644 mujs.h $(DESTDIR)$(incdir)
-	install -m 644 build/libmujs.a $(DESTDIR)$(libdir)
-	install -m 755 build/libmujs.so $(DESTDIR)$(libdir)
 	install -m 644 build/mujs.pc $(DESTDIR)$(libdir)/pkgconfig
 	install -m 755 build/mujs $(DESTDIR)$(bindir)
 
+install-static: install-common
+	install -m 644 build/libmujs.a $(DESTDIR)$(libdir)
+
+install-shared: install-common
+	install -m 755 build/libmujs.so $(DESTDIR)$(libdir)
+
+install: install-static install-shared
+
 tarball:
 	git archive --format=zip --prefix=mujs-$(VERSION)/ HEAD > mujs-$(VERSION).zip
 	git archive --format=tar --prefix=mujs-$(VERSION)/ HEAD | gzip > mujs-$(VERSION).tar.gz
@@ -100,4 +106,4 @@
 release:
 	$(MAKE) build=release clean default
 
-.PHONY: default clean install debug sanitize release
+.PHONY: default clean debug sanitize release install install-common install-shared install-static