latin-unity / Makefile

# Makefile for latin-unity

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

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

# Last-modified: 2002 October 24

# The XEmacs CVS version is canonical.  Keep versions n'sync.
VERSION = 1.07
MAINTAINER = Stephen J. Turnbull <>
PACKAGE = latin-unity
PKG_TYPE = regular

# The Mule-UCS, leim, and fsf-compat requires will go away at some point
ifeq ($(wildcard ../mule-ucs),)
REQUIRES = mule-base leim fsf-compat dired
REQUIRES = mule-base mule-ucs leim fsf-compat dired

# Latin-Unity is a unique package in that it does not compile or run
# under XEmacsen 21.1, at least not "out of the box".  So here's
# some really ugly Makefile voodoo that will allow people using XEmacs
# 21.1 to build the packages without it blowing up in their faces.
# Don't try this at home, kids.  SY.
include ../../Local.rules
CHECK_VERSION =	$(XEMACS) -batch -no-autoloads -eval '(princ (emacs-version>= 21 4))'

ifeq ($(shell $(CHECK_VERSION)),t)
ELCS = latin-unity.elc latin-unity-vars.elc latin-euro-input.elc \
       latin-unity-latin7.elc latin-latin7-input.elc latin-unity-latin9.elc \
       latin-unity-latin8.elc latin-unity-latin10.elc \

EXTRA_SOURCES = latin-unity-tests.el

# for defvars and creation of ISO 8859/13 and ISO 8859/15 charsets and
# coding system
PRELOADS=-l cl-macs -l latin-unity-latin7.el -l latin-unity-latin9.el \
         -l latin-unity-vars.el


DATA_1_FILES = ChangeLog Makefile README BLURB

GENERATED_ELCS += latin-unity-tables.elc

include ../../XEmacs.rules

# Experimental rule to build latin-unity-tables.el.
latin-unity-tables.el: latin-unity-vars.elc latin-unity-utils.elc
	$(BOOT_XEMACS) -l latin-unity-utils -f latin-unity-dump-tables
	@echo "*** You may see a few warnings about ISO 8859/3. ***"
	@echo "*** This is OK; it doesn't use all code points.  ***"

# We'd like this to be utf-8, but then pre-21.5.6 would have to depend on
# Mule-UCS
# #### This is broken by latin-unity-tests.el.
check: all
	@echo "make check is currently broken :-/"
	@echo "If you have an XEmacs core source tree, load tests/automated/test-harness"
	@echo "and run M-x test-emacs-test-file RET latin-unity-tests RET by hand."
#	xemacs -no-autoloads -batch \
#		-eval "(setq load-path (cons \"`pwd`/\" load-path))" \
#		-l latin-unity-vars -l latin-unity \
#		-f latin-unity-install -f latin-unity-test \
#		-eval "(write-file \"./latintest\" nil 'iso-2022-7)"
include ../../Version.rules

bad-version: autoloads
	@echo "************************ W A R N I N G *************************"
	@echo "Building $(PACKAGE) with versions less than 21.4 is unsupported by"
	@echo "the XEmacs Project."
	@echo "If you need this feature, contact the package maintainer directly:"
	@echo "$(MAINTAINER)"

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.