Patch: man page location
David Phillips
electrum at gmail.com
Thu Nov 18 13:25:59 PST 2004
Here is a patch to configure.ac and Makefile.am to put the man page in
the correct location. Trying to install the man page from a
subdirectory results in the subdirectory being used in the install
path (it tries to install to doc/memcached.1). This is the correct
thing to do:
- create a Makefile.am in the doc directory that installs the man page
with man_MANS
- modify Makefile.am in the base directory to reference the doc
directory using SUBDIRS
- modify the AC_CONFIG_FILES macro in configure.ac to output the Makefile in doc
--
David Phillips <david at acz.org>
http://david.acz.org/
-------------- next part --------------
diff -urN memcached-1.1.11-orig/configure.ac memcached-1.1.11/configure.ac
--- memcached-1.1.11-orig/configure.ac 2004-04-30 12:50:06.000000000 -0500
+++ memcached-1.1.11/configure.ac 2004-11-18 17:01:56.000000000 -0600
@@ -52,5 +52,5 @@
AC_CHECK_FUNCS(mlockall)
-AC_CONFIG_FILES(Makefile)
+AC_CONFIG_FILES(Makefile doc/Makefile)
AC_OUTPUT
diff -urN memcached-1.1.11-orig/doc/Makefile.am memcached-1.1.11/doc/Makefile.am
--- memcached-1.1.11-orig/doc/Makefile.am 1969-12-31 18:00:00.000000000 -0600
+++ memcached-1.1.11/doc/Makefile.am 2004-11-18 16:55:03.000000000 -0600
@@ -0,0 +1,3 @@
+man_MANS = memcached.1
+
+EXTRA_DIST = *.txt
diff -urN memcached-1.1.11-orig/Makefile.am memcached-1.1.11/Makefile.am
--- memcached-1.1.11-orig/Makefile.am 2004-04-26 16:26:48.000000000 -0500
+++ memcached-1.1.11/Makefile.am 2004-11-18 17:02:12.000000000 -0600
@@ -2,10 +2,9 @@
memcached_SOURCES = memcached.c slabs.c items.c memcached.h assoc.c
-DIST_SUBDIRS = doc scripts
+SUBDIRS = doc
+DIST_DIRS = scripts
EXTRA_DIST = doc scripts TODO
-man_MANS = doc/memcached.1
-
AM_CFLAGS=-DNDEBUG
More information about the memcached
mailing list