From 1e64742211ab37a98f57d5fdd25e26542a7ef2a7 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 08 May 2013 13:29:17 -0400 Subject: Move code from man/local.mk to Makefile.in. --- (limited to 'man') 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 . -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' -- cgit v0.9.1