summaryrefslogtreecommitdiffstats
path: root/man/local.mk
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-08 13:29:17 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-08 13:29:17 (EDT)
commit1e64742211ab37a98f57d5fdd25e26542a7ef2a7 (patch)
tree71b8da4cc3fc161f5e8d137f3c237ec3916b2f35 /man/local.mk
parentdfbd13cb7e81506c6d9237f5f4b4ab973f6a006a (diff)
Move code from man/local.mk to Makefile.in.
Diffstat (limited to 'man/local.mk')
-rw-r--r--man/local.mk26
1 files changed, 1 insertions, 25 deletions
diff --git a/man/local.mk b/man/local.mk
index 2035e8a..808e325 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -16,7 +16,7 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-man_srcs1 = \
+man1_srcs = \
man/oh-installfiles.1in \
man/oh-strip.1in \
man/oh-fixperms.1in \
@@ -26,27 +26,3 @@ man_srcs1 = \
man/oh-autotest.1in \
man/oh-autoinstall.1in \
man/oh-architecture.1in
-man_man1 = $(man_srcs1:.1in=.1)
-man_distfiles = man/local.mk $(man_srcs1)
-
-man_script = \
- s&@@PACKAGE_NAME@@&$(package_name)&;\
- s&@@PACKAGE_VERSION@@&$(package_version)&;\
- s&@@PACKAGE_DESCRIPTION@@&$(package_description)&;
-
-.SUFFIXES: .1in .1
-
-.1in.1:
- @printf ' SED %s\n' '$*.1'
- @abmon='Nul Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec '; \
- date=$$(LC_TIME=POSIX ls -l '$(srcdir)/$*.1in' | sed 's/ / /g' | \
- cut -d ' ' -f 6-8); \
- md="$${date% *}"; \
- m="$$(echo $${abmon% $${md% *} *} | wc -w)"; \
- d="$${md#* }"; \
- [ $${m} -lt 10 ] && m="0$${m}"; \
- [ $${d} -lt 10 ] && d="0$${d}"; \
- y="$${date##* }"; \
- [ "$${y%:*}" != "$${y}" ] && y=$$(date '+%Y'); \
- sed "$(man_script) s&@@DATE@@&$${y}-$${m}-$${d}&;" \
- '$(srcdir)/$*.1in' >'$*.1'