Clean up interfaces so that 1.2 is a bit easier to upgrade too.
[m6w6/libmemcached] / man / include.am
index 4d9fd1bf49e79dc362e77140d07444a5bb194181..512edc400cfc7783d41032e39dd2b7fb9191da37 100644 (file)
@@ -3,18 +3,19 @@
 # All paths should be given relative to the root
 
 if HAVE_RECENT_SPHINX
-
-if MAINTAINER_MODE
+if IS_VCS_CHECKOUT
 
 dist-hook: man
 
 # Build rule for documentation
 $(dist_man_MANS): man
 
-endif
-
 BUILT_SOURCES+= $(dist_man_MANS)
 
+endif
+endif
+
+if HAVE_RECENT_SPHINX
 dist_man_MANS+= man/memaslap.1
 dist_man_MANS+= man/memcapable.1
 dist_man_MANS+= man/memcat.1
@@ -133,5 +134,4 @@ dist_man_MANS+= man/memcached_touch.3
 dist_man_MANS+= man/memcached_touch_by_key.3
 dist_man_MANS+= man/memcached_verbosity.3
 dist_man_MANS+= man/memcached_version.3
-
 endif