You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

52 lines
1.2 KiB

  1. # -*- mode: makefile -*-
  2. default: _complain_
  3. include ./local.uses
  4. TARFILE_LOCAL = ${VIRGINS}/libftdi-${LIBFTDI_VERSION}.tar.gz
  5. TARFILE_URL = http://www.intra2net.com/de/produkte/opensource/ftdi/TGZ/libftdi-${LIBFTDI_VERSION}.tar.gz
  6. LIBFTDI_SRC_DIR = ${HERE}/libftdi-${LIBFTDI_VERSION}
  7. LIBFTDI_BUILD_DIR= ${HERE}/libftdi-build
  8. download:
  9. mkdir -p virgins
  10. wget -O ${TARFILE_LOCAL} ${TARFILE_URL}
  11. clean::
  12. rm -rf ${LIBFTDI_SRC_DIR}
  13. unpack:
  14. tar xf ${TARFILE_LOCAL}
  15. PATH := ${EXEC_PREFIX}/bin:${PATH}
  16. export PATH
  17. clean::
  18. rm -rf ${LIBFTDI_BUILD_DIR}
  19. configure:
  20. rm -rf ${LIBFTDI_BUILD_DIR}
  21. mkdir -p ${LIBFTDI_BUILD_DIR}
  22. cd ${LIBFTDI_BUILD_DIR} && ${LIBFTDI_SRC_DIR}/configure \
  23. --prefix=${PREFIX} \
  24. --exec-prefix=${EXEC_PREFIX}
  25. build:
  26. cd ${LIBFTDI_BUILD_DIR} && ${MAKE}
  27. install:
  28. cd ${LIBFTDI_BUILD_DIR} && ${MAKE} install
  29. all: unpack configure build install
  30. .PHONY: install
  31. _complain_:
  32. @echo ""
  33. @echo "Please try one of these targets: bootstrap, clean, configure, build, install"
  34. @echo " Or read the makefile and learn about the permutation test targets"
  35. @echo ""
  36. @echo "You also might find the download and unpack targets helpful."
  37. @echo ""
  38. @exit 1