src/utils/bigBedSummary/makefile 1.3
1.3 2009/03/26 20:18:40 hiram
updated to use DESTDIR and BINDIR
Index: src/utils/bigBedSummary/makefile
===================================================================
RCS file: /projects/compbio/cvsroot/kent/src/utils/bigBedSummary/makefile,v
retrieving revision 1.2
retrieving revision 1.3
diff -b -B -U 4 -r1.2 -r1.3
--- src/utils/bigBedSummary/makefile 10 Mar 2009 00:34:47 -0000 1.2
+++ src/utils/bigBedSummary/makefile 26 Mar 2009 20:18:40 -0000 1.3
@@ -1,14 +1,16 @@
include ../../inc/common.mk
L += -lm
MYLIBDIR = ../../lib/${MACHTYPE}
-MYLIBS = ${MYLIBDIR}/jkweb.a
+MYLIBS = ${MYLIBDIR}/jkweb.a ${L}
+A = bigBedSummary
O = bigBedSummary.o
-bigBedSummary: $O ${MYLIBS}
- ${CC} ${COPT} -o ${BINDIR}/bigBedSummary $O ${MYLIBS} $L
- ${STRIP} ${BINDIR}/bigBedSummary${EXE}
+bigBedSummary: ${O} ${MYLIBS}
+ @${MKDIR} "${DESTDIR}${BINDIR}"
+ ${CC} ${COPT} ${CFLAGS} -o ${DESTDIR}${BINDIR}/${A} $O ${MYLIBS}
+ ${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
-clean:
- rm -f $O
+clean::
+ rm -f ${O}