libmemcached: fix #13
[awesomized/libmemcached] / man / include.am
index 0a84bf7139653f543fa6eb6d656193c65eaf4b62..c676fcaf1de0125afb9d55cafee7bc01364b719f 100644 (file)
@@ -2,15 +2,11 @@
 # included from Top Level Makefile.am
 # All paths should be given relative to the root
 
-if HAVE_RECENT_SPHINX
-if IS_VCS_CHECKOUT
+RST_FILES= $(shell find $(top_builddir)/docs/source -type f -name '*.rst')
 
 # Build rule for documentation
-$(dist_man_MANS): man
-BUILT_SOURCES+= $(dist_man_MANS)
-
-endif
-endif
+$(dist_man_MANS): $(RST_FILES)
+       @cp docs/build/$@ $@
 
 dist_man_MANS+= man/memaslap.1
 dist_man_MANS+= man/memcapable.1