1994-08-01 20:07:07 +08:00
|
|
|
########################################################################
|
1995-01-05 03:02:35 +08:00
|
|
|
# Copyright 1991-1995 by Stichting Mathematisch Centrum, Amsterdam,
|
|
|
|
# The Netherlands.
|
|
|
|
#
|
1994-08-01 20:07:07 +08:00
|
|
|
# All Rights Reserved
|
1995-01-05 03:02:35 +08:00
|
|
|
#
|
|
|
|
# Permission to use, copy, modify, and distribute this software and its
|
|
|
|
# documentation for any purpose and without fee is hereby granted,
|
1994-08-01 20:07:07 +08:00
|
|
|
# provided that the above copyright notice appear in all copies and that
|
1995-01-05 03:02:35 +08:00
|
|
|
# both that copyright notice and this permission notice appear in
|
1994-08-01 20:07:07 +08:00
|
|
|
# supporting documentation, and that the names of Stichting Mathematisch
|
|
|
|
# Centrum or CWI not be used in advertising or publicity pertaining to
|
|
|
|
# distribution of the software without specific, written prior permission.
|
1995-01-05 03:02:35 +08:00
|
|
|
#
|
1994-08-01 20:07:07 +08:00
|
|
|
# STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO
|
|
|
|
# THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
|
|
# FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE
|
|
|
|
# FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
# ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
|
|
|
# OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
########################################################################
|
1993-12-24 18:39:16 +08:00
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Top-level Makefile for Python
|
|
|
|
#
|
|
|
|
# As distributed, this file is called Makefile.in; it is processed
|
|
|
|
# into the real Makefile by running the script ./configure, which
|
|
|
|
# replaces things like @spam@ with values appropriate for your system.
|
|
|
|
# This means that if you edit Makefile, your changes get lost the next
|
|
|
|
# time you run the configure script. Ideally, you can do:
|
|
|
|
#
|
|
|
|
# ./configure
|
|
|
|
# make
|
|
|
|
# make test
|
|
|
|
# make install
|
|
|
|
#
|
|
|
|
# The top-level Makefile invokes make recursively in a number of
|
|
|
|
# subdirectories (see the SUBDIRS variable below). If you want to,
|
|
|
|
# you can invoke make in individual subdirectories. However, the
|
|
|
|
# sub-Makefiles are also generated by configure, and the quickest way
|
|
|
|
# to make sure they are up to date is by running make (or "make
|
|
|
|
# Makefiles") at the top level. This is particularly important for
|
|
|
|
# Modules/Makefile, which has to be regenerated every time you edit
|
|
|
|
# Modules/Setup. The python executable is built in the Modules
|
|
|
|
# directory and then moved to the top-level directory. The recursive
|
|
|
|
# makes pass three options to subordinate makes: OPT (a quick way to
|
|
|
|
# change some compiler options; it defaults to -O), prefix and
|
|
|
|
# exec_prefix (the installation paths).
|
|
|
|
#
|
|
|
|
# If recursive makes fail, try invoking make as "make MAKE=make".
|
|
|
|
#
|
|
|
|
# See also the section "Build instructions" in the README file.
|
1993-12-24 18:39:16 +08:00
|
|
|
|
1996-07-24 10:35:43 +08:00
|
|
|
# Interpreter version number, for library destination pathnames
|
|
|
|
VERSION= 1.4
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Substitutions by configure
|
|
|
|
srcdir= @srcdir@
|
|
|
|
VPATH= @srcdir@
|
1994-10-11 01:58:27 +08:00
|
|
|
RANLIB= @RANLIB@
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1994-09-12 18:56:06 +08:00
|
|
|
# Machine-dependent subdirectories
|
|
|
|
MACHDEP= @MACHDEP@
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Install prefix for architecture-independent files
|
1995-01-03 02:33:54 +08:00
|
|
|
prefix= @prefix@
|
1994-08-01 20:07:07 +08:00
|
|
|
|
|
|
|
# Install prefix for architecture-dependent files
|
1995-01-03 02:33:54 +08:00
|
|
|
exec_prefix= @exec_prefix@
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1994-10-21 06:04:30 +08:00
|
|
|
# Expanded directories
|
|
|
|
MANDIR=$(prefix)/man
|
|
|
|
BINDIR=$(exec_prefix)/bin
|
|
|
|
LIBDIR=$(exec_prefix)/lib
|
|
|
|
INCLUDEDIR=$(prefix)/include
|
|
|
|
SCRIPTDIR=$(prefix)/lib
|
|
|
|
|
1994-09-12 18:56:06 +08:00
|
|
|
# Symbols used for using shared libraries
|
|
|
|
SO= @SO@
|
|
|
|
LDSHARED= @LDSHARED@
|
|
|
|
CCSHARED= @CCSHARED@
|
|
|
|
LINKFORSHARED= @LINKFORSHARED@
|
1996-07-24 10:35:43 +08:00
|
|
|
DESTSHARED= $(SCRIPTDIR)/python$(VERSION)/$(MACHDEP)
|
1994-09-12 18:56:06 +08:00
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Shell used by make (some versions default to the login shell, which is bad)
|
1994-08-01 20:07:07 +08:00
|
|
|
SHELL= /bin/sh
|
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Portable install script (configure doesn't always guess right)
|
|
|
|
INSTALL= @srcdir@/install-sh -c
|
|
|
|
INSTALL_PROGRAM=${INSTALL}
|
|
|
|
INSTALL_DATA= ${INSTALL} -m 644
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# --with-PACKAGE options for configure script
|
|
|
|
# e.g. --with-readline --with-svr5 --with-solaris --with-thread
|
|
|
|
# (see README for an explanation)
|
|
|
|
WITH=
|
|
|
|
|
|
|
|
# Compiler options passed to subordinate makes
|
1994-08-19 23:33:54 +08:00
|
|
|
OPT= @OPT@
|
1994-08-01 20:07:07 +08:00
|
|
|
|
|
|
|
# Subdirectories where to run make recursively
|
|
|
|
SUBDIRS= Parser Objects Python Modules
|
|
|
|
|
|
|
|
# Other subdirectories
|
|
|
|
SUBDIRSTOO= Include Lib Doc Misc Demo readline Grammar
|
|
|
|
|
|
|
|
# Files and directories to be distributed
|
|
|
|
CONFIGFILES= configure configure.in acconfig.h config.h.in Makefile.in
|
|
|
|
DISTFILES= README ChangeLog $(CONFIGFILES)
|
|
|
|
DISTDIRS= $(SUBDIRS) $(SUBDIRSTOO) Ext-dummy
|
|
|
|
DIST= $(DISTFILES) $(DISTDIRS)
|
|
|
|
|
|
|
|
# Default target
|
|
|
|
all: python
|
|
|
|
|
|
|
|
# Build the interpreter
|
|
|
|
python: Makefiles
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(SUBDIRS); do \
|
|
|
|
(echo Making in subdirectory $$i; cd $$i; \
|
1995-08-08 05:58:40 +08:00
|
|
|
$(MAKE) OPT="$(OPT)" \
|
|
|
|
prefix="$(prefix)" \
|
|
|
|
exec_prefix="$(exec_prefix)" \
|
|
|
|
all); \
|
1994-08-01 20:07:07 +08:00
|
|
|
done
|
|
|
|
|
|
|
|
# Test the interpreter (twice, once without .pyc files, once with)
|
1995-01-03 02:33:54 +08:00
|
|
|
TESTPATH= $(srcdir)/Lib:$(srcdir)/Lib/test:./Modules
|
1994-08-01 20:07:07 +08:00
|
|
|
test: python
|
|
|
|
-rm -f $(srcdir)/Lib/test/*.pyc
|
|
|
|
PYTHONPATH=$(TESTPATH) ./python -c 'import autotest'
|
|
|
|
PYTHONPATH=$(TESTPATH) ./python -c 'import autotest'
|
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Install everything
|
|
|
|
install: bininstall libinstall maninstall inclinstall \
|
|
|
|
libainstall sharedinstall
|
|
|
|
|
1996-07-24 10:35:43 +08:00
|
|
|
# Install most things with $(VERSION) affixed
|
|
|
|
altinstall: altbininstall libinstall libainstall sharedinstall
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Install the interpreter
|
1996-05-29 06:49:08 +08:00
|
|
|
bininstall: python
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(BINDIR); \
|
1996-05-29 06:49:08 +08:00
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
mkdir $$i; \
|
|
|
|
chmod 755 $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
1995-01-21 00:51:32 +08:00
|
|
|
$(INSTALL_PROGRAM) python $(BINDIR)/python
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1996-07-24 10:35:43 +08:00
|
|
|
# Install the interpreter with $(VERSION) affixed
|
|
|
|
altbininstall: python
|
|
|
|
@for i in $(BINDIR); \
|
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
mkdir $$i; \
|
|
|
|
chmod 755 $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
|
|
|
$(INSTALL_PROGRAM) python $(BINDIR)/python$(VERSION)
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Install the library.
|
|
|
|
# If your system does not support "cp -r", try "copy -r" or perhaps
|
1994-08-30 20:42:01 +08:00
|
|
|
# something like find Lib -print | cpio -pacvdmu $(LIBDEST)
|
1996-07-24 10:35:43 +08:00
|
|
|
LIBDEST= $(SCRIPTDIR)/python$(VERSION)
|
1996-05-29 06:49:08 +08:00
|
|
|
libinstall: python
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(SCRIPTDIR) $(LIBDEST); \
|
1996-05-29 06:49:08 +08:00
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
mkdir $$i; \
|
|
|
|
chmod 755 $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
1994-08-30 20:42:01 +08:00
|
|
|
cp -r $(srcdir)/Lib/* $(LIBDEST)
|
|
|
|
PYTHONPATH=$(LIBDEST) \
|
|
|
|
./python $(LIBDEST)/compileall.py $(LIBDEST)
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Install the manual page
|
1994-08-01 20:07:07 +08:00
|
|
|
maninstall:
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(MANDIR) $(MANDIR)/man1; \
|
1996-05-29 06:49:08 +08:00
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
mkdir $$i; \
|
|
|
|
chmod 755 $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
1995-01-21 00:51:32 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/Misc/python.man \
|
1994-10-21 06:04:30 +08:00
|
|
|
$(MANDIR)/man1/python.1
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Install the include files
|
1994-10-21 06:04:30 +08:00
|
|
|
INCLUDEPY= $(INCLUDEDIR)/Py
|
1994-08-01 20:07:07 +08:00
|
|
|
inclinstall:
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(INCLUDEDIR) $(INCLUDEPY); \
|
1996-05-29 06:49:08 +08:00
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
mkdir $$i; \
|
|
|
|
chmod 755 $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(srcdir)/Include/*.h; \
|
|
|
|
do \
|
|
|
|
echo $(INSTALL_DATA) $$i $(INCLUDEPY); \
|
|
|
|
$(INSTALL_DATA) $$i $(INCLUDEPY); \
|
|
|
|
done
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Install the lib*.a files and miscellaneous stuff needed by extensions
|
1994-10-21 06:04:30 +08:00
|
|
|
LIBP= $(LIBDIR)/python
|
1994-08-01 20:07:07 +08:00
|
|
|
LIBPL= $(LIBP)/lib
|
|
|
|
libainstall: all
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(LIBDIR) $(LIBP) $(LIBPL); \
|
1996-05-29 06:49:08 +08:00
|
|
|
do \
|
|
|
|
if test ! -d $$i; then \
|
|
|
|
echo "Creating directory $$i"; \
|
|
|
|
mkdir $$i; \
|
|
|
|
chmod 755 $$i; \
|
|
|
|
else true; \
|
|
|
|
fi; \
|
|
|
|
done
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(SUBDIRS); do \
|
|
|
|
echo Installing in subdirectory $$i; \
|
1996-05-29 06:49:08 +08:00
|
|
|
$(INSTALL_DATA) $$i/lib$$i.a $(LIBPL)/lib$$i.a; \
|
1994-10-11 01:58:27 +08:00
|
|
|
$(RANLIB) $(LIBPL)/lib$$i.a; \
|
1994-08-01 20:07:07 +08:00
|
|
|
done
|
1995-01-21 00:51:32 +08:00
|
|
|
$(INSTALL_DATA) Modules/config.c $(LIBPL)/config.c
|
1995-08-08 05:58:40 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/Modules/getpath.c $(LIBPL)/getpath.c
|
1995-01-21 00:51:32 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(LIBPL)/config.c.in
|
|
|
|
$(INSTALL_DATA) Modules/Makefile $(LIBPL)/Makefile
|
|
|
|
$(INSTALL_DATA) Modules/Setup $(LIBPL)/Setup
|
1996-07-21 10:46:47 +08:00
|
|
|
$(INSTALL_PROGRAM) $(srcdir)/Modules/makesetup $(LIBPL)/makesetup
|
1995-01-21 00:51:32 +08:00
|
|
|
$(INSTALL_DATA) config.h $(LIBPL)/config.h
|
|
|
|
$(INSTALL_DATA) $(srcdir)/Python/frozenmain.c $(LIBPL)/frozenmain.c
|
1995-08-09 17:18:20 +08:00
|
|
|
$(INSTALL_DATA) Modules/main.o $(LIBPL)/main.o
|
1994-08-01 20:07:07 +08:00
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Install the dynamically loadable modules
|
1994-09-12 18:56:06 +08:00
|
|
|
sharedinstall:
|
|
|
|
cd Modules; $(MAKE) \
|
|
|
|
OPT="$(OPT)" \
|
|
|
|
SO="$(SO)" \
|
|
|
|
LDSHARED="$(LDSHARED)" \
|
|
|
|
CCSHARED="$(CCSHARED)" \
|
|
|
|
LINKFORSHARED="$(LINKFORSHARED)" \
|
|
|
|
DESTSHARED="$(DESTSHARED)" \
|
1996-07-24 10:35:43 +08:00
|
|
|
prefix="$(prefix)" \
|
|
|
|
exec_prefix="$(exec_prefix)" \
|
1994-09-12 18:56:06 +08:00
|
|
|
sharedinstall
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Build the sub-Makefiles
|
1995-01-18 00:45:08 +08:00
|
|
|
Makefiles: config.status Modules/Makefile.pre
|
1994-08-01 20:07:07 +08:00
|
|
|
(cd Modules; $(MAKE) -f Makefile.pre Makefile)
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in . $(SUBDIRS); do \
|
|
|
|
(echo making Makefile in subdirectory $$i; cd $$i; \
|
|
|
|
$(MAKE) Makefile); \
|
1993-12-29 03:39:56 +08:00
|
|
|
done
|
|
|
|
|
1995-01-18 00:45:08 +08:00
|
|
|
# Build the intermediate Makefile in Modules
|
|
|
|
Modules/Makefile.pre: config.status
|
|
|
|
$(SHELL) config.status
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Build the toplevel Makefile
|
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
CONFIG_FILES=Makefile CONFIG_HEADERS= $(SHELL) config.status
|
|
|
|
|
|
|
|
# Run the configure script. If config.status already exists,
|
|
|
|
# call it with the --recheck argument, which reruns configure with the
|
|
|
|
# same options as it was run last time; otherwise run the configure
|
|
|
|
# script with options taken from the $(WITH) variable
|
|
|
|
config.status: $(srcdir)/configure
|
|
|
|
if test -f config.status; \
|
|
|
|
then $(SHELL) config.status --recheck; \
|
1995-01-12 20:26:50 +08:00
|
|
|
$(SHELL) config.status; \
|
1994-08-01 20:07:07 +08:00
|
|
|
else $(SHELL) $(srcdir)/configure $(WITH); \
|
|
|
|
fi
|
|
|
|
|
|
|
|
.PRECIOUS: config.status python
|
1993-12-29 03:39:56 +08:00
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Rerun configure with the same options as it was run last time,
|
|
|
|
# provided the config.status script exists
|
|
|
|
recheck:
|
|
|
|
$(SHELL) config.status --recheck
|
1995-01-05 03:02:35 +08:00
|
|
|
$(SHELL) config.status
|
1993-12-29 03:39:56 +08:00
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Rebuild the configure script from configure.in; also rebuild config.h.in
|
|
|
|
autoconf:
|
1996-06-29 04:15:41 +08:00
|
|
|
(cd $(srcdir); autoconf)
|
|
|
|
(cd $(srcdir); autoheader)
|
1994-08-01 20:07:07 +08:00
|
|
|
|
|
|
|
# Create a tags file for vi
|
|
|
|
tags::
|
|
|
|
ctags -w -t Include/*.h
|
|
|
|
for i in $(SUBDIRS); do ctags -w -t -a $$i/*.[ch]; done
|
|
|
|
sort tags -o tags
|
|
|
|
|
|
|
|
# Create a tags file for GNU Emacs
|
|
|
|
TAGS::
|
1994-08-05 23:51:00 +08:00
|
|
|
etags Include/*.h
|
|
|
|
for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done
|
1994-08-01 20:07:07 +08:00
|
|
|
|
|
|
|
# Add dependencies to sub-Makefiles
|
1993-12-29 03:39:56 +08:00
|
|
|
depend:
|
1996-06-20 22:30:38 +08:00
|
|
|
@for i in $(SUBDIRS); do \
|
|
|
|
(echo making depend in subdirectory $$i; cd $$i; \
|
|
|
|
$(MAKE) depend); \
|
1993-12-29 03:39:56 +08:00
|
|
|
done
|
1993-12-24 18:39:16 +08:00
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Sanitation targets -- clean leaves libraries, executables and tags
|
|
|
|
# files, which clobber removes those as well
|
|
|
|
|
1993-12-24 18:39:16 +08:00
|
|
|
localclean:
|
|
|
|
-rm -f core *~ [@,#]* *.old *.orig *.rej
|
|
|
|
|
|
|
|
clean: localclean
|
|
|
|
-for i in $(SUBDIRS); do \
|
1996-06-20 22:30:38 +08:00
|
|
|
(echo making clean in subdirectory $$i; cd $$i; \
|
1994-08-01 20:07:07 +08:00
|
|
|
if test -f Makefile; \
|
|
|
|
then $(MAKE) clean; \
|
|
|
|
else $(MAKE) -f Makefile.*in clean; \
|
|
|
|
fi); \
|
1993-12-24 18:39:16 +08:00
|
|
|
done
|
|
|
|
|
1993-12-29 03:39:56 +08:00
|
|
|
localclobber: localclean
|
1994-08-01 20:07:07 +08:00
|
|
|
-rm -f tags TAGS python
|
1996-06-20 22:30:38 +08:00
|
|
|
-rm -f config.log config.cache config.h
|
1993-12-29 03:39:56 +08:00
|
|
|
|
|
|
|
clobber: localclobber
|
1993-12-24 18:39:16 +08:00
|
|
|
-for i in $(SUBDIRS); do \
|
1996-06-20 22:30:38 +08:00
|
|
|
(echo clobbering subdirectory $$i; cd $$i; \
|
1994-08-01 20:07:07 +08:00
|
|
|
if test -f Makefile; \
|
|
|
|
then $(MAKE) clobber; \
|
1995-03-22 20:27:16 +08:00
|
|
|
else $(MAKE) -f $(srcdir)/Makefile.in clobber; \
|
1994-08-01 20:07:07 +08:00
|
|
|
fi); \
|
1993-12-24 18:39:16 +08:00
|
|
|
done
|
|
|
|
|
1996-06-20 22:30:38 +08:00
|
|
|
# Make things extra clean, before making a distribution:
|
|
|
|
# remove all generated files, even Makefile[.pre]
|
1993-12-24 18:39:16 +08:00
|
|
|
distclean: clobber
|
1995-03-22 20:27:16 +08:00
|
|
|
-$(MAKE) -f $(srcdir)/Makefile.in \
|
|
|
|
SUBDIRS="$(SUBDIRSTOO)" clobber
|
1995-01-03 02:33:54 +08:00
|
|
|
-rm -f config.status config.log config.cache config.h Makefile
|
1995-09-19 06:12:20 +08:00
|
|
|
-rm -f Modules/Makefile
|
1994-08-01 20:07:07 +08:00
|
|
|
-for i in $(SUBDIRS) $(SUBDIRSTOO); do \
|
|
|
|
for f in $$i/*.in; do \
|
|
|
|
f=`basename "$$f" .in`; \
|
|
|
|
if test "$$f" != "*"; then \
|
|
|
|
echo rm -f "$$i/$$f"; \
|
|
|
|
rm -f "$$i/$$f"; \
|
|
|
|
fi; \
|
|
|
|
done; \
|
1993-12-24 18:39:16 +08:00
|
|
|
done
|
|
|
|
|
1996-05-29 06:49:08 +08:00
|
|
|
# Check for smelly exported symbols (not starting with Py/_Py)
|
|
|
|
smelly: all
|
|
|
|
for i in $(SUBDIRS); do \
|
|
|
|
echo --- $$i ---; \
|
|
|
|
nm -p $$i/lib$$i.a | \
|
|
|
|
sed -n "/ [TDB] /s/.* //p" | grep -v "^_*Py" | sort -u; \
|
|
|
|
done
|
|
|
|
|
1994-08-01 20:07:07 +08:00
|
|
|
# Find files with funny names
|
1996-06-20 22:30:38 +08:00
|
|
|
funny:
|
1994-08-01 20:07:07 +08:00
|
|
|
find $(DISTDIRS) -type d \
|
|
|
|
-o -name '*.[chs]' \
|
|
|
|
-o -name '*.py' \
|
|
|
|
-o -name '*.doc' \
|
|
|
|
-o -name '*.sty' \
|
|
|
|
-o -name '*.bib' \
|
|
|
|
-o -name '*.dat' \
|
|
|
|
-o -name '*.el' \
|
|
|
|
-o -name '*.fd' \
|
|
|
|
-o -name '*.in' \
|
|
|
|
-o -name '*.tex' \
|
|
|
|
-o -name '*,[vpt]' \
|
|
|
|
-o -name 'Setup' \
|
|
|
|
-o -name 'Setup.*' \
|
|
|
|
-o -name README \
|
|
|
|
-o -name Makefile \
|
|
|
|
-o -name ChangeLog \
|
|
|
|
-o -name Repository \
|
1996-06-20 22:30:38 +08:00
|
|
|
-o -name Root \
|
1994-08-01 20:07:07 +08:00
|
|
|
-o -name Entries \
|
|
|
|
-o -name Tag \
|
|
|
|
-o -name tags \
|
|
|
|
-o -name TAGS \
|
|
|
|
-o -name .cvsignore \
|
|
|
|
-o -name MANIFEST \
|
|
|
|
-o -print
|