Randy Terbush wrote:
>
> This was brought up recently, but I don't remember a resolution.
>
> Would there be great oposition in adding the following install:
> tag to Makefile.tmpl? PREFIX would of course need to be defined.
>
>
> install:
> if [ ! -d $(PREFIX)/bin ]; then \
> mkdir -p $(PREFIX)/bin \
> fi
> cp httpd $(PREFIX)/bin
> if [ ! -d $(PREFIX)/include ]; then \
> mkdir -p $(PREFIX)/include \
> fi
> cp httpd.h $(PREFIX)/include
>
There are some OSs that don't support the 'mkdir -p' option.
For max portability, I would suggest either a shell-script
that emulates or another alternative.
--
====================================================================
Jim Jagielski | jaguNET Access Services
jim@jaguNET.com | http://www.jaguNET.com/
"Not the Craw... the CRAW!"
|