diff options
author | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2008-01-22 23:35:57 +0100 |
---|---|---|
committer | Ralf Wildenhues <Ralf.Wildenhues@gmx.de> | 2008-01-22 23:35:57 +0100 |
commit | 56c41c99aff6be60ea2440066cedf852ce15c69a (patch) | |
tree | e7dc14fbd7ab8a35b8422cac2c96292ba5d80ff5 /lib/am/mans.am | |
parent | 379e37ea35bf38164c23d44dbef344a11274085b (diff) | |
download | automake-56c41c99aff6be60ea2440066cedf852ce15c69a.tar.gz |
Prefer generated manpages over distributed ones.
* lib/am/mans.am (install-man%SECTION%): Prefer generated manpages
over distributed ones.
Report and patch by Peter Breitenlohner.
* tests/man3.test: New test.
* tests/Makefile.am: Update.
Diffstat (limited to 'lib/am/mans.am')
-rw-r--r-- | lib/am/mans.am | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/am/mans.am b/lib/am/mans.am index b3e9053c4..42812543c 100644 --- a/lib/am/mans.am +++ b/lib/am/mans.am @@ -1,5 +1,5 @@ ## automake - create Makefile.in from Makefile.am -## Copyright (C) 1998, 2001, 2003, 2004, 2006 Free Software Foundation, Inc. +## Copyright (C) 1998, 2001, 2003, 2004, 2006, 2008 Free Software Foundation, Inc. ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by @@ -42,8 +42,8 @@ install-man%SECTION%: $(man%SECTION%_MANS) $(man_MANS) done; \ for i in $$list; do \ ## Find the file. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ - else file=$$i; fi; \ + if test -f $$i; then file=$$i; \ + else file=$(srcdir)/$$i; fi; \ ## Change the extension if needed. ext=`echo $$i | sed -e 's/^.*\\.//'`; \ case "$$ext" in \ |