0e2b924a7b0e384df35d5f5d1ab00e408aa9d034
hiram
  Wed Mar 27 16:10:03 2013 -0700
adding some sanity to the makefiles with DESTDIR compile and install targets refs #9104
diff --git src/utils/addCols/makefile src/utils/addCols/makefile
index 7efafe9..225b459 100644
--- src/utils/addCols/makefile
+++ src/utils/addCols/makefile
@@ -1,10 +1,18 @@
 include ../../inc/common.mk
 
+L +=
+MYLIBDIR = ../../lib/$(MACHTYPE)
+MYLIBS =  $(MYLIBDIR)/jkweb.a
 
 O = addCols.o 
+A = addCols
 
-addCols: $O
-	${CC} ${COPT} ${CFLAGS} -o ${BINDIR}/addCols $O ../../lib/$(MACHTYPE)/jkweb.a ${L}
+addCols: ${O}
+	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A} $O ${MYLIBS} ${L}
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
+
+compile:: ${O} ${MYLIBS}
+	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} ${L}
 
 clean::
-	rm -f ${O}
+	rm -f ${O} ${A}${EXE}