head	1.2;
access;
symbols
	start:1.1.1.1 vendor:1.1.1;
locks; strict;
comment	@# @;


1.2
date	2001.11.13.19.08.37;	author zilche;	state dead;
branches;
next	1.1;

1.1
date	2000.03.14.21.13.25;	author tack;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.03.14.21.13.25;	author tack;	state Exp;
branches;
next	;


desc
@@


1.2
log
@*** empty log message ***
@
text
@These are my changes to automake-1.4 to make it handle python scripts nicely.
The file automake-1.4.diff contains diffs to the actual automake script.  It
also contains a few patches that I needed to use to get my package to build.

These extra changes allow you to build targets whose names begin with an
underscore, and allow Makefile variable expansions inside a target name.

The main changes allow you to use the PYTHON primary.  When you use it, you
must call the AM_PATH_PYTHON macro in your configure script.  Then, to
install scripts into the python library, put the following into the
Makefile.am:
  python_PYTHON = script1.py script2.py ...

This will install the scripts into the python library (the site-packages
directory for newer distributions), and byte compile it (including an
optimised byte compile for newer distributions of python).  To install a
python package, do the following:
  pypkgdir = $(pythondir)/pypkg
  pypkg_PYTHON = __init__.py script1.py ...


I have also included a few scripts to help with compiling extensions.  This
doesn't have any special automake support, except for allowing macro
substitutions in a target name, and allow underscores at the start of a
target name (a few python extensions use this).

All you need to do is call the AM_INIT_PYEXEC_MOD, and include code similar to
this in the Makefile.am:

  # This gives all the compilation flags you need for python extensions ...
  INCLUDES = $(PYTHON_INCLUDES) $(PYTHON_CFLAGS)

  # pyexecdir is defined by AM_PATH_PYTHON ...
  pyexec_PROGRAMS = somemodule$(SO)

  # and have something like this for each extension:
  amodule__SO__SOURCES = somemodule.c
  # any extra libraries ...
  amodule__SO__LDADD = -lsomething
  amodule__SO__LINK = $(PYTHON_LINK)


To install the patches, apply the automake patch included, copy the *.m4
files to $(prefix)/share/aclocal, and copy the *.am files and py-compile
to $(prefix)/share/automake.  Note that you may want to call the patched
copy of automake something other than automake just in case.


  James Henstridge <james@@daa.com.au>

@


1.1
log
@Initial revision
@
text
@@


1.1.1.1
log
@
Initial project import.
@
text
@@
