Source

mew / Makefile

# Makefile for Mew lisp code

# This file is part of XEmacs.

# XEmacs is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2, or (at your option) any
# later version.

# XEmacs is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
# for more details.

# You should have received a copy of the GNU General Public License
# along with XEmacs; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

VERSION = 1.17
AUTHOR_VERSION = 1.94.2
MAINTAINER = XEmacs Development Team <xemacs-beta@xemacs.org>
PACKAGE = mew
PKG_TYPE = regular
REQUIRES = mew w3 efs mail-lib xemacs-base fsf-compat
CATEGORY = standard

ELCS = mew/mew.elc mew/mew-attach.elc mew/mew-bq.elc mew/mew-cache.elc \
	mew/mew-complete.elc mew/mew-decode.elc mew/mew-demo.elc \
	mew/mew-draft.elc mew/mew-encode.elc mew/mew-env.elc mew/mew-ext.elc \
	mew/mew-fib.elc mew/mew-func.elc mew/mew-header.elc \
	mew/mew-highlight.elc mew/mew-mark.elc \
	mew/mew-message.elc mew/mew-mime.elc mew/mew-minibuf.elc \
	mew/mew-pgp.elc mew/mew-pick.elc mew/mew-refile.elc \
	mew/mew-scan.elc mew/mew-sort.elc mew/mew-summary.elc \
	mew/mew-syntax.elc mew/mew-temacs.elc mew/mew-unix.elc \
	mew/mew-vars.elc mew/mew-virtual.elc mew/mew-win32.elc \
	mew/mew-addrbook.elc mew/mew-mule.elc 
EXTRA_SOURCES = mew/mew-mule0.el mew/mew-mule2.el mew/mew-mule3.el \
	mew/mew-xemacs.el

INFO_FILES = mew.info*
INFO_DEP = mew.info
HTML_FILES = mew/info/mew*.html
HTML_DEP = mew/info/mew.html
TEXI_FILES = mew/info/mew.texi
DATA_FILES = mew/etc/*.img mew/etc/*.xpm mew/etc/*.xbm mew/etc/*.png
DATA_DEST = $(PACKAGE)

AUTOLOAD_PATH = mew

include ../../XEmacs.rules

ifeq ($(BUILD_WITHOUT_MULE),)
INFO_FILES += mew.jis.info*
INFO_DEP += mew.jis.info
ELCS += mew/mew-lang-jp.elc
endif


# XEmacs native MS Windows needs this quoting of command-line
# arguments due to basic differences in the handling of command-line
# arguments in Unix and MS Windows.
#### not any more, as of Cygwin 1.1.8-2 (Feb 2001) -- ben
ifeq ($(XEMACS_NATIVE_NT_NEEDS_EXTRA_QUOTING),t)
INSERT_MEW_TEXI = (insert-file-contents \\\"mew/info/mew.texi\\\")
else
INSERT_MEW_TEXI = (insert-file-contents \"mew/info/mew.texi\")
endif

all:: $(AUTOLOAD_PATH)/auto-autoloads.elc $(ELCS) $(INFO_DEP)

mew.info: mew/info/mew.texi
	$(XEMACS) -batch -vanilla \
		-eval "$(INSERT_MEW_TEXI)" \
		-l ./hack-mew.texi.el \
		$(FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS) \
		-eval '(save-buffer 0)'

ifeq ($(BUILD_WITHOUT_MULE),)
mew.jis.info: mew/info/mew.texi
	$(XEMACS) -batch -vanilla \
		-eval "$(INSERT_MEW_TEXI)" \
		-l ./hack-mew-jis.texi.el \
		$(FORMAT_INFO_USING_XEMACS_NO_SAVE_ARGS) \
		-eval '(setq file-coding-system (quote iso-2022-7))' \
		-eval '(save-buffer 0)'
endif

srckit: srckit-std

binkit: binkit-common