src/utils/wigSetSpanOrStep/makefile 1.1

1.1 2010/05/24 18:09:14 kent
Made utility to fix spans or steps in a wig file. About 100x faster than sed is the motivation....
Index: src/utils/wigSetSpanOrStep/makefile
===================================================================
RCS file: src/utils/wigSetSpanOrStep/makefile
diff -N src/utils/wigSetSpanOrStep/makefile
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ src/utils/wigSetSpanOrStep/makefile	24 May 2010 18:09:14 -0000	1.1
@@ -0,0 +1,24 @@
+include ../../inc/common.mk
+
+L += -lm
+MYLIBDIR = ../../lib/${MACHTYPE}
+MYLIBS =  ${MYLIBDIR}/jkweb.a
+
+A = wigSetSpanOrStep
+O = wigSetSpanOrStep.o
+
+wigSetSpanOrStep: ${O} ${MYLIBS}
+	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A}${EXE} $O ${MYLIBS} $L
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+compile:: ${O}
+	${CC} ${COPT} -o ${A}${EXE} ${O} ${MYLIBS} $L
+
+clean::
+	rm -f ${A}${EXE} ${O}
+
+test:
+	wigSetSpanOrStep span=50 inVar.wig outVar.wig
+	diff expectedVar.wig outVar.wig
+	wigSetSpanOrStep step=5 inFixed.wig outFixed.wig
+	diff expectedFixed.wig outFixed.wig