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