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/aNotB/makefile src/utils/aNotB/makefile
index 84e5541..29155e5 100644
--- src/utils/aNotB/makefile
+++ src/utils/aNotB/makefile
@@ -1,14 +1,18 @@
 include ../../inc/common.mk
 
 L += -lm
 MYLIBDIR = ../../lib/$(MACHTYPE)
 MYLIBS =  $(MYLIBDIR)/jkweb.a
 
 O = aNotB.o
+A = aNotB
 
 aNotB: $O $(MYLIBS)
-	${CC} ${COPT} ${CFLAGS} -o ${BINDIR}/aNotB $O $(MYLIBS) $L
-	${STRIP} ${BINDIR}/aNotB${EXE}
+	${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}