mc/doc/man/date-of-man-include.am
Yury V. Zaytsev 8430219c95 Fixed man2hlp warnings by renaming conflicting LANG variable to HLP_LANG.
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
Signed-off-by: Slava Zanko <slavazanko@gmail.com>
2010-09-06 17:37:28 +03:00

25 lines
1.2 KiB
Plaintext

mc.1: $(top_builddir)/config.status $(srcdir)/mc.1.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
@MTM=$$(LANG=C stat -c '%y' $(srcdir)/mc.1.in); \
MAN_DATE=$$(LC_TIME=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \
sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@
mcedit.1: $(top_builddir)/config.status $(srcdir)/mcedit.1.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
@MTM=$$(LANG=C stat -c '%y' $(srcdir)/mcedit.1.in); \
MAN_DATE=$$(LC_TIME=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \
sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@
mcview.1: $(top_builddir)/config.status $(srcdir)/mcview.1.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
@MTM=$$(LANG=C stat -c '%y' $(srcdir)/mcview.1.in); \
MAN_DATE=$$(LC_TIME=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \
sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@
mcserv.8: $(top_builddir)/config.status $(srcdir)/mcserv.8.in
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
@MTM=$$(LANG=C stat -c '%y' $(srcdir)/mcserv.1.in); \
MAN_DATE=$$(LC_TIME=$(DATE_LANG) date -d "$${MTM}" +'$(DATE_FORMAT)'); \
sed -i "s/@DATE_OF_MAN_PAGE@/$${MAN_DATE}/" $@