summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
authorJeff Layton <jlayton@samba.org>2010-12-09 09:37:52 -0500
committerJeff Layton <jlayton@samba.org>2010-12-09 09:37:52 -0500
commit68691e68937ab9dc7f2d570da7e38659f25d41c1 (patch)
treee93b2de6362bc840e28fa6d4da2c817ea764a7ad /Makefile.am
parent0f588214bc07682b522ac14814b4d97a9b6455d4 (diff)
downloadcifs-utils-68691e68937ab9dc7f2d570da7e38659f25d41c1.tar.gz
cifs-utils-68691e68937ab9dc7f2d570da7e38659f25d41c1.tar.bz2
cifs-utils-68691e68937ab9dc7f2d570da7e38659f25d41c1.zip
cifs-utils: rewrite hardcoded paths in manpages
Currently the manpages (particularly cifs.upcall.8) have hardcoded paths in them that need to be manually adjusted. Replace those paths with @sbindir@ and add a makefile target that will use sed to replace those paths with the ones set by autoconf. Signed-off-by: Jeff Layton <jlayton@samba.org>
Diffstat (limited to 'Makefile.am')
-rw-r--r--Makefile.am6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 38a16fe..cbfa846 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -13,6 +13,12 @@ sbin_PROGRAMS = cifs.upcall
cifs_upcall_SOURCES = cifs.upcall.c data_blob.c asn1.c spnego.c util.c
cifs_upcall_LDADD = -ltalloc -lkeyutils $(KRB5_LDADD)
man_MANS += cifs.upcall.8
+
+cifs.upcall.8: cifs.upcall.8.in
+ sed 's,\@sbindir\@,$(sbindir),' < $(srcdir)/cifs.upcall.8.in > cifs.upcall.8
+
+clean-local:
+ rm -f cifs.upcall.8
endif
if CONFIG_CIFSCREDS