Fixed test to put binary in DISTDIR
[0compile.git] / tests / cprog / Makefile
blob1225517098c377079cb4f59023d54d7ff60a4520
1 LIB_DIR=${DISTDIR}/lib
2 PC_DIR=${DISTDIR}/pkgconfig
4 all: main
5 ls -ld "${CPROG_SELF}"
6 ./main
7 cp main "${DISTDIR}/"
8 [ -d "${PC_DIR}" ] || mkdir "${PC_DIR}"
9 echo "prefix=${DISTDIR}" > "${PC_DIR}/cprog.pc"
10 [ -d "${LIB_DIR}" ] || mkdir "${LIB_DIR}"
11 echo "# Please DO NOT delete this file!" >> "${LIB_DIR}/bad.la"
12 echo "# Innocent file" >> "${LIB_DIR}/good.la"
13 echo "# Please DO NOT delete this file!" >> "${LIB_DIR}/nice.ok"