ref: 16049bbbdc7b5a3c4c2eafc9c07ede1c2f0aa85f
parent: 14dc9355bd71818cf01c1c690c1c91a0978ea9b8
author: Tor Andersson <[email protected]>
date: Wed Jul 3 16:25:19 EDT 2019
Issue 107: Depend only on the exact files needed for install targets.
--- a/Makefile
+++ b/Makefile
@@ -102,7 +102,7 @@
watch:
@ while ! inotifywait -q -e modify $(SRCS) $(HDRS) ; do time -p $(MAKE) ; done
-install-common: shell $(OUT)/mujs.pc
+install-common: $(OUT)/mujs $(OUT)/mujs.pc
install -d $(DESTDIR)$(incdir)
install -d $(DESTDIR)$(libdir)
install -d $(DESTDIR)$(libdir)/pkgconfig
@@ -111,10 +111,10 @@
install -m 644 $(OUT)/mujs.pc $(DESTDIR)$(libdir)/pkgconfig
install -m 755 $(OUT)/mujs $(DESTDIR)$(bindir)
-install-static: install-common static
+install-static: install-common $(OUT)/libmujs.a
install -m 644 $(OUT)/libmujs.a $(DESTDIR)$(libdir)
-install-shared: install-common shared
+install-shared: install-common $(OUT)/libmujs.so
install -m 755 $(OUT)/libmujs.so $(DESTDIR)$(libdir)
install: install-static