1 # Experimental versioning checks for packages
2 # Copyright (C) 2003 Steve Youngs.
4 # This file is part of XEmacs.
6 # XEmacs is free software; you can redistribute it and/or modify it
7 # under the terms of the GNU General Public License as published by the
8 # Free Software Foundation; either version 2, or (at your option) any
11 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
12 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 # You should have received a copy of the GNU General Public License
17 # along with XEmacs; see the file COPYING. If not, write to
18 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 # Boston, MA 02110-1301, USA.
21 # Requires XEmacs 21.0-beta19 or greater and GNU Make 3.78 or greater.
23 # This is for packages that require specific XEmacs versions to run
24 # (generally a VERY VERY BAD thing). If you think your package needs
25 # this please take another look at your code to see if you can make it
26 # version independent. Right now the only package that uses this is
27 # Mule-UCS, lets try to keep it that way. SY
29 # To get this to work, in the package's Makefile:
31 # include ../../Local.rules
32 # CHECK_VERSION = $(XEMACS) -batch -no-autoloads -eval '(princ (emacs-version>= x y z))'
33 # # 'x y z' represents the minimum XEmacs major and optional minor and patch versions
34 # # this package runs on.
35 # ifeq ($(shell $(CHECK_VERSION)),t)
36 # [rest of normal package Makefile]
38 # include ../../Version.rules
40 # [what to do if not right XEmacs version, usually just echo
41 # something to stdout]
44 # For a working example look at ./mule-packages/mule-ucs/Makefile
47 # From here on it is just a list of targets that all point to the
48 # 'bad-version' target.
72 install-for-bindist: all