data: unify and simplify Makefiles

Origin commit data
------------------
Branch: ni/coolstream
Commit: 4e58ef51f3
Author: vanhofen <vanhofen@gmx.de>
Date: 2019-05-01 (Wed, 01 May 2019)

Origin message was:
------------------
- data: unify and simplify Makefiles

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2019-05-01 18:15:30 +02:00
parent b16e9b0327
commit 2a839f1a08
5 changed files with 16 additions and 42 deletions

View File

@@ -1,30 +1,18 @@
installdir = $(bindir)
install_DATA = \
install_SCRIPTS = \
backup.sh \
restore.sh \
wakeup.sh \
install.sh
if BOXMODEL_CS_HD2
install_DATA += \
install_SCRIPTS += \
backup_flash.sh \
restore_flash.sh
endif
if BOXTYPE_ARMBOX
install_DATA += \
install_SCRIPTS += \
restore_flash.sh
endif
install-data-hook:
chmod 0755 $(DESTDIR)$(bindir)/backup.sh
chmod 0755 $(DESTDIR)$(bindir)/restore.sh
chmod 0755 $(DESTDIR)$(bindir)/wakeup.sh
chmod 0755 $(DESTDIR)$(bindir)/install.sh
if BOXMODEL_CS_HD2
chmod 0755 $(DESTDIR)$(bindir)/backup_flash.sh
chmod 0755 $(DESTDIR)$(bindir)/restore_flash.sh
endif
if BOXTYPE_ARMBOX
chmod 0755 $(DESTDIR)$(bindir)/restore_flash.sh
endif