Skip to content

Commit

Permalink
Fix files access modes 2 (drop unnecessary execute bits)
Browse files Browse the repository at this point in the history
  • Loading branch information
sercxjo committed Sep 29, 2016
1 parent 123e158 commit 157c079
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions devLib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ $(STATIC): $(OBJ)
$(DYNAMIC): $(OBJ)
@echo "[Link (Dynamic)]"
@$(CC) -shared -Wl,-soname,libwiringPiDev.so -o libwiringPiDev.so.$(VERSION) -lpthread $(OBJ)
@chmod -x $@

.c.o:
@echo [Compile] $<
Expand Down Expand Up @@ -93,15 +94,15 @@ install-headers:
install: $(DYNAMIC) install-headers
@echo "[Install Dynamic Lib]"
@install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
@install -m 0755 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION)
@install -m 0644 libwiringPiDev.so.$(VERSION) $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION)
@ln -sf $(DESTDIR)$(PREFIX)/lib/libwiringPiDev.so.$(VERSION) $(DESTDIR)/lib/libwiringPiDev.so
@ldconfig

.PHONEY: install-static
install-static: $(STATIC) install-headers
@echo "[Install Static Lib]"
@install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
@install -m 0755 libwiringPiDev.a $(DESTDIR)$(PREFIX)/lib
@install -m 0644 libwiringPiDev.a $(DESTDIR)$(PREFIX)/lib

.PHONEY: uninstall
uninstall:
Expand Down
2 changes: 1 addition & 1 deletion wiringPi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ install: $(DYNAMIC) install-headers
install-static: $(STATIC) install-headers
@echo "[Install Static Lib]"
@install -m 0755 -d $(DESTDIR)$(PREFIX)/lib
@install -m 0755 libwiringPi.a $(DESTDIR)$(PREFIX)/lib
@install -m 0644 libwiringPi.a $(DESTDIR)$(PREFIX)/lib

.PHONEY: uninstall
uninstall:
Expand Down

0 comments on commit 157c079

Please sign in to comment.