Makefile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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:= 10
  7. PKG_DESCR:= openadk installer
  8. PKG_SECTION:= base
  9. PKG_DEPENDS:= parted sfdisk mke2fs
  10. PKG_URL:= http://openadk.org/
  11. PKG_ARCH_DEPENDS:= !m68k
  12. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}
  13. NO_DISTFILES:= 1
  14. include ${TOPDIR}/mk/package.mk
  15. $(eval $(call PKG_template,ADKINSTALL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  16. CONFIG_STYLE:= manual
  17. BUILD_STYLE:= manual
  18. INSTALL_STYLE:= manual
  19. pre-configure:
  20. mkdir -p ${WRKBUILD}
  21. do-install:
  22. ${INSTALL_DIR} $(IDIR_ADKINSTALL)/sbin
  23. ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB532),y)
  24. ${INSTALL_BIN} ./src/adkinstall.rb532 \
  25. $(IDIR_ADKINSTALL)/sbin/adkinstall
  26. else ifeq ($(ADK_TARGET_SYSTEM_ACMESYSTEMS_FOXG20),y)
  27. ${INSTALL_BIN} ./src/adkinstall.foxg20 \
  28. $(IDIR_ADKINSTALL)/sbin/adkinstall
  29. else ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
  30. ${INSTALL_BIN} ./src/adkinstall.yeelong \
  31. $(IDIR_ADKINSTALL)/sbin/adkinstall
  32. else ifeq ($(ADK_TARGET_SYSTEM_MIKROTIK_RB4XX),y)
  33. ${INSTALL_BIN} ./src/adkinstall.rb4xx \
  34. $(IDIR_ADKINSTALL)/sbin/adkinstall
  35. else
  36. ${INSTALL_BIN} ./src/adkinstall $(IDIR_ADKINSTALL)/sbin
  37. endif
  38. include ${TOPDIR}/mk/pkg-bottom.mk