1. xemacs
  2. mew

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.02
AUTHOR_VERSION = 1.93b38
MAINTAINER = XEmacs Development Team <xemacs-beta@xemacs.org>
PACKAGE = mew
PKG_TYPE = regular
REQUIRES = mew
CATEGORY = comm

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-lang-jp.elc mew/mew-mark.elc \
	mew/mew-message.elc mew/mew-mime.elc mew/mew-minibuf.elc \
	mew/mew-mule0.elc mew/mew-mule2.elc mew/mew-mule3.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-xemacs.elc

INFO_FILES = mew.info* mew.jis.info*
TEXI_FILES = mew/info/mew.texi mew/info/00readme hack-mew.texi.el \
	hack-mew-jis.texi.el
MANUAL = mew
DATA_FILES = mew/etc/*.img mew/etc/*.xpm mew/etc/*.xbm
DATA_DEST = $(PACKAGE)

include ../../XEmacs.rules

ifeq ($(BUILD_MULE),t)
MANUAL += mew.jis
endif

GENERATED = mew/auto-autoloads.elc

PRELOADS = -eval "(push \"`pwd`/mew/\" load-path)"

all:: mew/auto-autoloads.el $(ELCS) mew/auto-autoloads.elc

mew/auto-autoloads.el: $(ELC:.elc=.el) _pkg.el
	$(RCOPY) _pkg.el mew
	$(XEMACS) -batch -vanilla \
		-eval "(setq autoload-package-name \"$(PACKAGE)\")" \
		-l autoload -f batch-update-directory mew

mew.info: mew/info/mew.texi
	$(XEMACS) -batch -vanilla \
		-eval "(insert-file-contents \"mew/info/mew.texi\")" \
		-l ./hack-mew.texi.el \
		-l texinfmt -f texinfo-format-buffer \
		-eval '(save-buffer 0)'

mew.jis.info: mew/info/mew.texi
	$(XEMACS) -batch -vanilla \
		-eval "(insert-file-contents \"mew/info/mew.texi\")" \
		-l ./hack-mew-jis.texi.el \
		-l texinfmt -f texinfo-format-buffer \
		-eval '(setq file-coding-system (quote iso-2022-7))' \
		-eval '(save-buffer 0)'

srckit: srckit-std

binkit: binkit-sourcedatainfo

#	-rm -rf $(STAGING)/lisp/$(PACKAGE)
#	-mkdir -p $(STAGING)/lisp/$(PACKAGE)
#	-mkdir -p $(STAGING)/info
#	-(cd $(STAGING)/info; rm -rf $(INFO_FILES))
#	-rm -rf $(STAGING)/etc/$(PACKAGE)
#	-mkdir -p $(STAGING)/etc/$(PACKAGE)
#	$(RCOPY) ChangeLog mew/*.el* $(EXTRA_SOURCES) $(STAGING)/lisp/$(PACKAGE)
#	$(RCOPY) $(INFO_FILES) $(STAGING)/info
#	$(RCOPY) mew/etc/*.* mew/etc/etc/*.* $(STAGING)/etc/$(PACKAGE)
#	(cd $(STAGING); \
#	rm -f $(PACKAGE)-$(VERSION)-pkg.tar*; \
#	$(TAR) $(EXCLUDES) -cf $(PACKAGE)-$(VERSION)-pkg.tar lisp/$(PACKAGE) \
#		$(INFO_FILES:%=info/%) etc/$(PACKAGE); \
#	gzip -v9 $(PACKAGE)-$(VERSION)-pkg.tar)