Hi,
> According to the GNU standards file, in the part on installing stuff
> from Makefiles:
>
> Optionally, you may prepend the value of `DESTDIR' to the target
> filename. Doing this allows the installer to create a snapshot of the
> installation to be copied onto the real target filesystem later. Do not
> set the value of `DESTDIR' in your Makefile, and do not include it in
> any installed files. With support for `DESTDIR', the above examples
> become:
>
> $(INSTALL_PROGRAM) foo $(DESTDIR)$(bindir)/foo
> $(INSTALL_DATA) libfoo.a $(DESTDIR)$(libdir)/libfoo.a
>
> (Lots of non-GNU stuff supports this too.)
>From GNU standards.info:
Variables for Installation Directories
======================================
Installation directories should always be named by variables,
so it is easy to install in a nonstandard place. The standard
names for these variables are:
`prefix'
A prefix used in constructing the default values of the variables
listed below. The default value of `prefix' should be `/usr/local'
(at least for now).
The prefix can be specified when running configure; that sets the
definition in the Makefile. But when `make install' is done the
prefix can be over-ridden `make prefix=/tmp install'. This means software
gets built expecting to be in the default /usr/local but can actually be
installed somewhere else.
If nmh supports this (I don't have the source to hand) then doesn't that
accomplish what you require?
Regards,
Ralph.