Browse Source

build: Create DESTDIR subdirectories before installing

Change-Id: I4157f26ad9c828da6f552a360fdce1f7d030d4f3
Origin: https://github.com/tizenteam/WiringPi
Signed-off-by: Philippe Coval <philippe.coval@osg.samsung.com>
pull/49/head
Philippe Coval 8 years ago
committed by Philippe Coval
parent
commit
62a256c8f9
3 changed files with 6 additions and 1 deletions
  1. +4
    -1
      devLib/Makefile
  2. +1
    -0
      gpio/Makefile
  3. +1
    -0
      wiringPi/Makefile

+ 4
- 1
devLib/Makefile View File

@@ -116,12 +116,15 @@ install-deb: $(DYNAMIC)
ln -sf ~/wiringPi/debian-template/wiringPi/usr/lib/libwiringPiDev.so.$(VERSION) ~/wiringPi/debian-template/wiringPi/usr/lib/libwiringPiDev.so

.PHONY: uninstall
uninstall:
uninstall: $(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib
$Q echo "[UnInstall]"
$Q install -d $(DESTDIR)$(PREFIX)/include/ $(DESTDIR)$(PREFIX)/lib
$Q cd $(DESTDIR)$(PREFIX)/include/ && rm -f $(HEADERS)
$Q cd $(DESTDIR)$(PREFIX)/lib/ && rm -f libwiringPiDev.*
$Q $(LDCONFIG)

$(DESTDIR)$(PREFIX)/include $(DESTDIR)$(PREFIX)/lib $(DESTDIR)$(PREFIX)/bin:
$Q install -d $@

.PHONY: depend
depend:


+ 1
- 0
gpio/Makefile View File

@@ -72,6 +72,7 @@ tags: $(SRC)
.PHONY: install
install: gpio
$Q echo "[Install]"
$Q install -d $(DESTDIR)$(PREFIX)/bin
$Q cp gpio $(DESTDIR)$(PREFIX)/bin
ifneq ($(WIRINGPI_SUID),0)
$Q chown root.root $(DESTDIR)$(PREFIX)/bin/gpio


+ 1
- 0
wiringPi/Makefile View File

@@ -140,6 +140,7 @@ install-deb: $(DYNAMIC)
.PHONY: uninstall
uninstall:
$Q echo "[UnInstall]"
$Q install -d $(DESTDIR)$(PREFIX)/include/ $(DESTDIR)$(PREFIX)/lib
$Q cd $(DESTDIR)$(PREFIX)/include/ && rm -f $(HEADERS)
$Q cd $(DESTDIR)$(PREFIX)/lib/ && rm -f libwiringPi.*
$Q $(LDCONFIG)


Loading…
Cancel
Save