mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-18 17:29:28 +03:00
f98cda9ff3
%prefix% isn't used anymore, remove it. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
25 lines
786 B
Plaintext
25 lines
786 B
Plaintext
SED_PARAMETERS = \
|
|
-e "s/%DATE_OF_MAN_PAGE%/$${MAN_DATE}/g" \
|
|
-e "s/%MAN_VERSION%/@MAN_VERSION@/g" \
|
|
-e "s{%sysconfdir%{@sysconfdir@{g" \
|
|
-e "s{%libexecdir%{@libexecdir@{g" \
|
|
-e "s{%pkglibexecdir%{$(libexecdir)/@PACKAGE@{g" \
|
|
-e "s{%pkgdatadir%{$(datadir)/@PACKAGE@{g"
|
|
|
|
MAN_DATE_CMD = \
|
|
LC_ALL=$(DATE_LANG) @PERL_FOR_BUILD@ -CS -MPOSIX -e '\
|
|
@fi=lstat("'$${MAN_FILE}'"); \
|
|
print POSIX::strftime("$(DATE_FORMAT)", localtime($$fi[9]));' 2>/dev/null
|
|
|
|
mc.1: $(srcdir)/mc.1.in
|
|
MAN_FILE=$<; MAN_DATE=$$($(MAN_DATE_CMD)); \
|
|
sed $(SED_PARAMETERS) $< > $@
|
|
|
|
mcedit.1: $(srcdir)/mcedit.1.in
|
|
MAN_FILE=$<; MAN_DATE=$$($(MAN_DATE_CMD)); \
|
|
sed $(SED_PARAMETERS) $< > $@
|
|
|
|
mcview.1: $(srcdir)/mcview.1.in
|
|
MAN_FILE=$<; MAN_DATE=$$($(MAN_DATE_CMD)); \
|
|
sed $(SED_PARAMETERS) $< > $@
|