mirror of
https://github.com/ccxvii/mujs.git
synced 2026-02-06 09:51:41 +08:00
Issue 107: Depend only on the exact files needed for install targets.
This commit is contained in:
6
Makefile
6
Makefile
@@ -102,7 +102,7 @@ $(OUT)/mujs.pc:
|
||||
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-common: shell $(OUT)/mujs.pc
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user