diff --git a/devLib/Makefile b/devLib/Makefile index 9ec163d..38ab9d9 100644 --- a/devLib/Makefile +++ b/devLib/Makefile @@ -25,6 +25,8 @@ VERSION=$(shell cat ../VERSION) DESTDIR?=/usr PREFIX?=/local +LDCONFIG?=ldconfig + ifneq ($V,1) Q ?= @ endif @@ -90,7 +92,7 @@ install: $(DYNAMIC) $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib $Q install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so - $Q ldconfig + $Q $(LDCONFIG) .PHONY: install-static install-static: $(STATIC) @@ -116,7 +118,7 @@ uninstall: $Q echo "[UnInstall]" $Q cd $(DESTDIR)$(PREFIX)/include/ && rm -f $(HEADERS) $Q cd $(DESTDIR)$(PREFIX)/lib/ && rm -f libwiringPiDev.* - $Q ldconfig + $Q $(LDCONFIG) .PHONY: depend diff --git a/wiringPi/Makefile b/wiringPi/Makefile index c0623ce..5518c9e 100644 --- a/wiringPi/Makefile +++ b/wiringPi/Makefile @@ -25,6 +25,8 @@ VERSION=$(shell cat ../VERSION) DESTDIR?=/usr PREFIX?=/local +LDCONFIG?=ldconfig + ifneq ($V,1) Q ?= @ endif @@ -114,7 +116,7 @@ install: $(DYNAMIC) $Q install -m 0755 -d $(DESTDIR)$(PREFIX)/lib $Q install -m 0755 libwiringPi.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $Q ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPi.so.$(VERSION) $(DESTDIR)/lib/libwiringPi.so - $Q ldconfig + $Q $(LDCONFIG) .PHONY: install-static install-static: $(STATIC) @@ -140,7 +142,7 @@ uninstall: $Q echo "[UnInstall]" $Q cd $(DESTDIR)$(PREFIX)/include/ && rm -f $(HEADERS) $Q cd $(DESTDIR)$(PREFIX)/lib/ && rm -f libwiringPi.* - $Q ldconfig + $Q $(LDCONFIG) .PHONY: depend