src/hg/bedItemOverlapCount/makefile 1.8
1.8 2009/04/23 20:46:01 larrym
add DESTDIR so we can add this to userApps
Index: src/hg/bedItemOverlapCount/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/hg/bedItemOverlapCount/makefile,v
retrieving revision 1.7
retrieving revision 1.8
diff -b -B -U 1000000 -r1.7 -r1.8
--- src/hg/bedItemOverlapCount/makefile 10 Mar 2009 00:33:43 -0000 1.7
+++ src/hg/bedItemOverlapCount/makefile 23 Apr 2009 20:46:01 -0000 1.8
@@ -1,24 +1,25 @@
include ../../inc/common.mk
L += -lm ${MYSQLLIBS}
MYLIBDIR = ../../lib/${MACHTYPE}
MYLIBS = ${MYLIBDIR}/jkhgap.a ${MYLIBDIR}/jkweb.a
A = bedItemOverlapCount
O = bedItemOverlapCount.o
${A}: ${O} ${MYLIBS}
- ${CC} ${COPT} ${CFLAGS} -o ${BINDIR}/${A} $O ${MYLIBS} $L
- ${STRIP} ${BINDIR}/${A}${EXE}
+ @${MKDIR} "${DESTDIR}${BINDIR}"
+ ${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A} $O ${MYLIBS} $L
+ ${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
test: ${A}
cd tests && ./RunTest.sh
testVerbose: ${A}
cd tests && ./RunTest.sh -verbose
compile: ${O}
${CC} ${COPT} ${CFLAGS} -o ${A} $O ${MYLIBS} $L
clean::
rm -f ${O} ${A}