Browse Source

Don't install docs for (compile-time) disabled functionality

Luke Dashjr 12 years ago
parent
commit
6c61eba340
2 changed files with 10 additions and 5 deletions
  1. 9 5
      Makefile.am
  2. 1 0
      configure.ac

+ 9 - 5
Makefile.am

@@ -18,11 +18,7 @@ EXTRA_DIST	= \
 dist_doc_DATA = \
 dist_doc_DATA = \
 		  AUTHORS COPYING HACKING NEWS README \
 		  AUTHORS COPYING HACKING NEWS README \
 		  example.conf \
 		  example.conf \
-		  README.ASIC \
-		  README.FPGA \
-		  README.GPU \
-		  README.RPC \
-		  README.scrypt
+		  README.RPC
 
 
 rpcexamplesdir = $(docdir)/rpc-examples
 rpcexamplesdir = $(docdir)/rpc-examples
 dist_rpcexamples_DATA = \
 dist_rpcexamples_DATA = \
@@ -105,6 +101,8 @@ bfgminer_SOURCES += *.cl
 kernelsdir = $(pkgdatadir)/opencl
 kernelsdir = $(pkgdatadir)/opencl
 dist_kernels_DATA = $(top_srcdir)/*.cl
 dist_kernels_DATA = $(top_srcdir)/*.cl
 
 
+dist_doc_DATA += README.GPU
+
 if HAVE_SENSORS
 if HAVE_SENSORS
 bfgminer_LDADD += $(sensors_LIBS)
 bfgminer_LDADD += $(sensors_LIBS)
 endif
 endif
@@ -114,6 +112,7 @@ endif
 
 
 if HAS_SCRYPT
 if HAS_SCRYPT
 bfgminer_SOURCES += scrypt.c scrypt.h
 bfgminer_SOURCES += scrypt.c scrypt.h
+dist_doc_DATA += README.scrypt
 endif
 endif
 
 
 if HAS_CPUMINE
 if HAS_CPUMINE
@@ -163,6 +162,10 @@ if NEED_DYNCLOCK
 bfgminer_SOURCES += dynclock.c dynclock.h
 bfgminer_SOURCES += dynclock.c dynclock.h
 endif
 endif
 
 
+if HAS_FPGA
+dist_doc_DATA += README.FPGA
+endif
+
 if HAS_BITFORCE
 if HAS_BITFORCE
 bfgminer_SOURCES += driver-bitforce.c
 bfgminer_SOURCES += driver-bitforce.c
 
 
@@ -180,6 +183,7 @@ endif
 
 
 if HAS_AVALON
 if HAS_AVALON
 bfgminer_SOURCES += driver-avalon.c driver-avalon.h hexdump.c
 bfgminer_SOURCES += driver-avalon.c driver-avalon.h hexdump.c
+dist_doc_DATA += README.ASIC
 endif
 endif
 
 
 if HAS_MODMINER
 if HAS_MODMINER

+ 1 - 0
configure.ac

@@ -532,6 +532,7 @@ AM_CONDITIONAL([HAVE_SENSORS], [test x$with_sensors = xyes])
 AM_CONDITIONAL([HAVE_CYGWIN], [test x$have_cygwin = xtrue])
 AM_CONDITIONAL([HAVE_CYGWIN], [test x$have_cygwin = xtrue])
 AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
 AM_CONDITIONAL([HAVE_WINDOWS], [test x$have_win32 = xtrue])
 AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
 AM_CONDITIONAL([HAVE_x86_64], [test x$have_x86_64 = xtrue])
+AM_CONDITIONAL([HAS_FPGA], [test x$bitforce$icarus$modminer$x6500$ztex != xnonononono])
 
 
 dnl Find YASM
 dnl Find YASM
 has_yasm=false
 has_yasm=false