4c2801cf841978a1f1cb208cbfc9446d82265e3b
hiram
  Wed Mar 27 14:57:56 2013 -0700
cleanup and proper DESTDIR for refs #9104
diff --git src/utils/faCat/makefile src/utils/faCat/makefile
index 263199a..0a3c1f2 100644
--- src/utils/faCat/makefile
+++ src/utils/faCat/makefile
@@ -1,17 +1,18 @@
 include ../../inc/common.mk
 
 L += -lm
 MYLIBDIR = ../../lib/$(MACHTYPE)
 MYLIBS =  $(MYLIBDIR)/jkweb.a
 
 O = faCat.o
+A = faCat
 
 faCat: $O $(MYLIBS)
-	${CC} ${COPT} ${CFLAGS} -o ${BINDIR}/faCat $O $(MYLIBS) $L
-	${STRIP} ${BINDIR}/faCat${EXE}
+	${CC} ${COPT} -o ${DESTDIR}${BINDIR}/${A} $O ${MYLIBS} ${L}
+	${STRIP} ${DESTDIR}${BINDIR}/${A}${EXE}
 
-test:
-	(cd tests && ${MAKE} test)
+compile:: ${O} ${MYLIBS}
+	${CC} ${COPT} ${CFLAGS} -o ${A}${EXE} $O ${MYLIBS} ${L}
 
 clean::
-	(cd tests && ${MAKE} clean)
+	rm -f $O ${A}${EXE}