f83d531d97bd5ff3f94b2e036fbc2e36de3f85c8
braney
  Thu Jan 5 10:52:07 2012 -0800
SAMDIR directory needs to have $MACHTYPE in it.
diff --git src/inc/common.mk src/inc/common.mk
index eeb2e90..5d45e63 100644
--- src/inc/common.mk
+++ src/inc/common.mk
@@ -45,31 +45,31 @@
 endif
 ifeq (${PNGLIB},)
   PNGLIB=-lpng
 endif
 
 L+=${PNGLIB}
 HG_INC+=${PNGINCL}
 
 # 32-bit color enabled by default
 ifneq (${COLOR32},0)
     HG_DEFS+=-DCOLOR32
 endif
 
 # autodetect local installation of samtools:
 ifeq (${SAMDIR},)
-  SAMDIR = /hive/data/outside/samtools/samtools-0.1.18/x86_64
+  SAMDIR = /hive/data/outside/samtools/samtools-0.1.18/${MACHTYPE}
   ifneq ($(wildcard ${SAMDIR}),)
      KNETFILE_HOOKS=1
   endif
 endif
 ifeq (${USE_BAM},)
   ifneq ($(wildcard ${SAMDIR}),)
      USE_BAM=1
   endif
 endif
 
 # libbam (samtools, and Angie's KNETFILE_HOOKS extension to it): disabled by default
 ifeq (${USE_BAM},1)
     ifeq (${SAMINC},)
         SAMINC = ${SAMDIR}
     endif