Installation
------------

1. You need GNU Make version 3.76.1 or above.
   An older version might work, but was never tested.

2. Run

     ./configure

   Options:

     --prefix=PREFIX	: Installs the script in PREFIX/bin,
   			  default is /usr/local.
     --datadir=DATADIR	: DATADIR/prototype will keep all the
   			  shared Makefiles and Makefile templates.
			  Default is PREFIX/share.

   HACKERs info:
   	If you think you will tune and extend the Makefile rules a
	lot for your own personal needs; Then you might want to
	install the Makefiles as a `project' on its own, with you
	as owner (instead of root).  For instance,

	./configure --prefix=$HOME --datadir=$HOME/projects

	You do NOT want this if you just need this package to
	compile another package, like libr.

3. Run

     make install

4. The environment variable PROTODIR should point to the 'prototype'
   installation directory (DATADIR/prototype).

   As an example, if you use `bash' as your shell, you could add
   to your ~/.profile the following line,

     export PROTODIR=/usr/local/share/prototype

5. Edit $PROTODIR/Makedefs.h and edit it to make it work for your
   environment.

6. Optionally, test the installation by running

     make test


Creating a new project
----------------------

Change directory into the projects directory where you want
to add a new Makefile and type: makeproto

This script will try to find out *) which of the five Makefiles
you want and copy it to the current directory.

After copying it, edit it for your needs (often no editing is needed).

*) The script will create a `base' Makefile when you start a new
   project, or a `test' Makefile when the current directory contains
   the word "test" in it.  Otherwise you will have to specify which
   of the five Makefile types you want (it will tell you).
