Source

x-symbol / Makefile.upstream

Full commit
youngs b4035d0 












































































































































































### Makefile --- create binary package of X-Symbol

## Copyright (C) 1998-2002 Free Software Foundation, Inc.

## Author: Christoph Wedler <wedler@users.sourceforge.net>
## Version: 3.4
## Keywords: fonts, WYSIWYG, LaTeX, HTML, wp, math
## X-URL: http://x-symbol.sourceforge.net/

# This file is not part of XEmacs.

# This software 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.

# This software 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 This software; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.


## VERSION is a float!  Thus, use the format XXX.YZ and avoid Z=0.
VERSION = 3.42
AUTHOR_VERSION = 3.4.2
MAINTAINER = Christoph Wedler <wedler@users.sourceforge.net>
PACKAGE = x-symbol
PKG_TYPE = regular
REQUIRES = xemacs-base
CATEGORY = wp
RELEASEDIR = $(HOME)/public_html/x-symbol
PACKAGEDIR = $(HOME)/.xemacs/xemacs-packages

## nil if you want to use XEmacs-21' feature of uninterned symbols in macros
XMAS20 = t
CONFIGURATION = hppa1.1-hp-hpux11.00

## other program settings after "include ./XEmacs.rules" below
ZIP = gzip -v9
MAKEINFO_FLAGS = -I ./man --no-split

###===========================================================================
## Shouln't be interesting from now on... (except "include ./XEmacs.rules")

ELCS = lisp/x-symbol-nomule.elc \
	lisp/x-symbol-xmas20.elc lisp/x-symbol-xmas21.elc \
	lisp/x-symbol-hooks.elc lisp/x-symbol-macs.elc \
	lisp/x-symbol-vars.elc lisp/x-symbol.elc \
	lisp/x-symbol-image.elc lisp/x-symbol-exec.elc \
	lisp/x-symbol-tex.elc lisp/x-symbol-utex.elc lisp/x-symbol-sgml.elc

DATA_DEST = $(PACKAGE)
DATA_FILES = etc/colormap138.xpm \
	etc/RIP.xbm etc/drawing.xbm etc/escherknot.xbm etc/hourglass.xbm \
	etc/recycle.xbm etc/termlock.xbm

DATA_1_DEST = $(PACKAGE)/fonts
DATA_1_FILES = fonts/Makefile fonts/makesub \
	fonts/nilxs.bdf \
	fonts/2helvR12.bdf fonts/3helvR12.bdf fonts/5etl14.bdf \
	fonts/xsymb0_12.bdf fonts/xsymb1_12.bdf \
	fonts/2helvR14.bdf fonts/3helvR14.bdf fonts/5etl16.bdf \
	fonts/xsymb0_14.bdf fonts/xsymb1_14.bdf

DATA_2_DEST = $(PACKAGE)/origfonts
DATA_2_FILES = origfonts/helvR12.bdf origfonts/helvR14.bdf

DATA_3_DEST = $(PACKAGE)/pcf
DATA_3_FILES = pcf/fonts.dir pcf/*.pcf

INFO_FILES = man/x-symbol.info*
TEXI_FILES = man/Makefile man/x-symbol.texi man/x-symbol.css man/x-symbol.init

WWW_FILES = www/changes.html www/emacs.html www/features.html www/index.html \
	www/setup.html www/colors.png www/context.png www/grid.png \
	www/images.png www/key.png www/overview.png www/subscripts.png \
	www/token.png www/xsymb.png

MANUAL = x-symbol

AUTOLOAD_PATH = lisp

###===========================================================================
include ./XEmacs.rules
## overwrite settings of XEmacs.rules
BUILD_MULE = t
RCOPY = cp -p
TAR = /usr/local/guru/gtar -h
###===========================================================================

GENERATED += lisp/custom-load.elc

EXCLUDES += --exclude 'RCS' --exclude '*.elc' --exclude '*.aux' \
	--exclude '*.cp' --exclude '*.dvi' \
	--exclude 'genfonts' --exclude 'pcf' \
	--exclude 'Also' --exclude 'Fonts' --exclude 'Old' --exclude 'Tests' \
	--exclude 'Utils' --exclude 'doc' --exclude 'release' \
	--exclude 'www' --exclude 'admin'

EXTRA_SOURCES = lisp/x-symbol-site.el
ifeq ($(BUILD_MULE),t)
MULE_ELCS = lisp/x-symbol-mule.elc
else
MULE_ELCS =
EXTRA_SOURCES += lisp/x-symbol-mule.el
ifeq ($(BUILD_MULE),old)
EXTRA_SOURCES += lisp/x-symbol-mule.elc
endif
endif

ifeq ($(XMAS20),t)
PRELOADS = -eval "(setq byte-compile-print-gensym nil)"
else
PRELOADS =
endif
PRELOADS += -eval "(progn (if (featurep 'x-symbol-autoloads) (unload-feature 'x-symbol-autoloads)) (push \"`pwd`/lisp/\" load-path))" -l auto-autoloads.el

# With XEmacs-21.1, -vanilla now only includes -no-early-packages, not
# -no-packages.  This is not useful at all.  If there is a decent function to
# get the load-path of packages in $(REQUIRES), I would use it.  If
# package-compile.el could be used without changing my file structure, I would
# probably use it.

all:: lisp/auto-autoloads.el $(MULE_ELCS) $(ELCS) \
	lisp/auto-autoloads.elc lisp/custom-load.elc texinfo fonts

texinfo: man/x-symbol.texi
	$(MAKE) -C man x-symbol.info

fonts:
	$(MAKE) -C fonts mkdirs
	$(MAKE) -C fonts pcfs

binaries:
	$(XEMACS) -vanilla -batch \
	-eval "(push \"$(PACKAGEDIR)/lisp/x-symbol/\") load-path)" -l auto-autoloads.el \
	-eval "(setq x-symbol-data-directory \"$(PACKAGEDIR)/etc/x-symbol/\"))" -f x-symbol-exec-create
	$(MAKE) -C $(PACKAGEDIR)/etc/x-symbol/bin/$(CONFIGURATION)

.PHONY: srckit test release fonts binaries

srckit: distclean
	if [ ! -d $(STAGING) ]; then mkdir -p $(STAGING); fi
	(cd ..; \
	rm -f $(STAGING)/$(PACKAGE)-$(VERSION)-src.tar*; \
	$(TAR) $(EXCLUDES) -cf $(STAGING)/$(PACKAGE)-$(VERSION)-src.tar $(PACKAGE)-stable)
	gzip -v9 $(STAGING)/$(PACKAGE)-$(VERSION)-src.tar

clean: mostlyclean
	$(MAKE) -C man clean
	$(MAKE) -C fonts clean

binkit: binkit-common

release: srckit man/x-symbol.ps binball
	if [ ! -d $(RELEASEDIR) ]; then mkdir -p $(RELEASEDIR); fi
	if [ ! -d $(RELEASEDIR)/man ]; then mkdir -p $(RELEASEDIR)/man; fi
	(cd $(RELEASEDIR); rm -f $(PACKAGE)-src.tar* $(PACKAGE)-pkg.tar*)
	$(RCOPY) $(STAGING)/$(PACKAGE)-$(VERSION)-src.tar.gz \
		$(RELEASEDIR)/$(PACKAGE)-src.tar.gz
	$(RCOPY) $(STAGING)/$(PACKAGE)-$(VERSION)-pkg.tar.gz \
		$(RELEASEDIR)/$(PACKAGE)-pkg.tar.gz
	$(RCOPY) man/x-symbol*.html man/x-symbol.ps $(RELEASEDIR)/man
	$(ZIP) -f $(RELEASEDIR)/man/x-symbol.ps
	$(RCOPY) ChangeLog $(RELEASEDIR)
	$(RCOPY) $(WWW_FILES) $(RELEASEDIR)

man/x-symbol.ps: man/x-symbol.texi
	$(MAKE) -C man all