freebsd-ports/mail/mew2/files/patch-ac
2002-05-25 02:46:22 +00:00

95 lines
3.1 KiB
Text

--- info/Makefile.orig Fri Aug 17 21:26:00 2001
+++ info/Makefile Tue Nov 20 10:18:58 2001
@@ -28,9 +28,9 @@
#INSTALLINFO_OPTIONS = --section Emacs Emacs
#INSTALLINFO_JOPTIONS =
#infodir =
-INSTALLINFO_ARGS = mew.info $(infodir)/dir
+INSTALLINFO_ARGS = mew${MEW_MAJOR_VER}.info $(infodir)/dir
#INSTALLINFO_ARGS = mew.info
-INSTALLINFO_JARGS = mew.jis.info $(infodir)/dir
+INSTALLINFO_JARGS = mew${MEW_MAJOR_VER}.jis.info $(infodir)/dir
RM = rm -f
@@ -44,50 +44,60 @@
## DO NOT EDIT THE FOLLOWINGS
##
-INFO = mew.info mew.info-1 mew.info-2 mew.info-3
-JINFO = mew.jis.info mew.jis.info-1 mew.jis.info-2 mew.jis.info-3
+INFO = mew${MEW_MAJOR_VER}.info mew${MEW_MAJOR_VER}.info-1 mew${MEW_MAJOR_VER}.info-2 mew${MEW_MAJOR_VER}.info-3
+JINFO = mew${MEW_MAJOR_VER}.jis.info mew${MEW_MAJOR_VER}.jis.info-1 mew${MEW_MAJOR_VER}.jis.info-2 mew${MEW_MAJOR_VER}.jis.info-3
+MANUALS= 00readme mew.texi
all: info
info:
- sed -e 's/@setfilename mew.jis.info/@setfilename mew.info/' \
+ sed -e "s/@setfilename mew${MEW_MAJOR_VER}\.jis\.info/@setfilename mew${MEW_MAJOR_VER}\.info/" \
-e 's/@set jp/@set us/' mew.texi > tmp.texi
mv tmp.texi mew.texi
- $(RM) mew.info*
- $(TOUCH) mew.info
+ $(RM) mew${MEW_MAJOR_VER}.info*
+ $(TOUCH) mew${MEW_MAJOR_VER}.info
$(EMACS) -batch -q -no-site-file -l texinfmt \
-f batch-texinfo-format mew.texi
jinfo:
- sed -e 's/@setfilename mew.info/@setfilename mew.jis.info/' \
+ sed -e "s/@setfilename mew${MEW_MAJOR_VER}\.info/@setfilename mew${MEW_MAJOR_VER}\.jis.info/" \
-e 's/@set us/@set jp/' mew.texi > tmp.texi
mv tmp.texi mew.texi
- $(RM) mew.jis.info*
- $(TOUCH) mew.jis.info
+ $(RM) mew${MEW_MAJOR_VER}.jis.info*
+ $(TOUCH) mew${MEW_MAJOR_VER}.jis.info
$(EMACS) -batch -q -no-site-file -l texinfmt \
-f batch-texinfo-format mew.texi
install: install-info
install-info:
- -@if [ ! -d $(infodir) ]; then \
+ -if [ ! -d $(infodir) ]; then \
$(MKDIR) $(infodir); \
fi; \
- cp $(INFO) $(infodir)
- -@if [ -x "$(INSTALLINFO)" ]; then \
- $(INSTALLINFO) $(INSTALLINFO_OPTIONS) $(INSTALLINFO_ARGS); \
- else \
- echo "Don't forget to edit $(infodir)/dir for Mew."; \
+ ${BSD_INSTALL_DATA} $(INFO) $(infodir)/
+ -if [ -z "${XEMACS_VER_OVER20}" ]; then \
+ if [ -x "$(INSTALLINFO)" ]; then \
+ $(INSTALLINFO) $(INSTALLINFO_OPTIONS) $(INSTALLINFO_ARGS); \
+ else \
+ echo "Don't forget to edit $(infodir)/dir for Mew."; \
+ fi; \
fi
install-jinfo:
- -@if [ ! -d $(infodir) ]; then \
+ -if [ ! -d $(infodir) ]; then \
$(MKDIR) $(infodir); \
fi; \
- cp $(JINFO) $(infodir)
- -@if [ -x "$(INSTALLINFO)" ]; then \
- $(INSTALLINFO) $(INSTALLINFO_JOPTIONS) $(INSTALLINFO_JARGS); \
- else \
- echo "Don't forget to edit $(infodir)/dir for Mew."; \
+ ${BSD_INSTALL_DATA} $(JINFO) $(infodir)/
+ -if [ -z "${XEMACS_VER_OVER20}" ]; then \
+ if [ -x "$(INSTALLINFO)" ]; then \
+ $(INSTALLINFO) $(INSTALLINFO_JOPTIONS) $(INSTALLINFO_JARGS); \
+ else \
+ echo "Don't forget to edit $(infodir)/dir for Mew."; \
+ fi; \
fi
+
+install-man:
+ ${MKDIR} ${MANDIR}
+ ${BSD_INSTALL_DATA} ${MANUALS} ${MANDIR}
+
##
## End of Makefile
##