Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. PKG_NAME:= adkinstall
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 9
  7. PKG_DESCR:= openadk installer
  8. PKG_SECTION:= base
  9. PKG_DEPENDS:= parted sfdisk e2fsprogs
  10. PKG_URL:= http://openadk.org/
  11. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  12. NO_DISTFILES:= 1
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,ADKINSTALL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. CONFIG_STYLE:= manual
  16. BUILD_STYLE:= manual
  17. INSTALL_STYLE:= manual
  18. pre-configure:
  19. mkdir -p ${WRKBUILD}
  20. do-install:
  21. ${INSTALL_DIR} $(IDIR_ADKINSTALL)/sbin
  22. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
  23. ${INSTALL_BIN} ./src/adkinstall.rb532 \
  24. $(IDIR_ADKINSTALL)/sbin/adkinstall
  25. else ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
  26. ${INSTALL_BIN} ./src/adkinstall.foxg20 \
  27. $(IDIR_ADKINSTALL)/sbin/adkinstall
  28. else ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  29. ${INSTALL_BIN} ./src/adkinstall.yeelong \
  30. $(IDIR_ADKINSTALL)/sbin/adkinstall
  31. else ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
  32. ${INSTALL_BIN} ./src/adkinstall.rb4xx \
  33. $(IDIR_ADKINSTALL)/sbin/adkinstall
  34. else
  35. ${INSTALL_BIN} ./src/adkinstall $(IDIR_ADKINSTALL)/sbin
  36. endif
  37. include ${TOPDIR}/mk/pkg-bottom.mk