info-inventor-dev
[Top] [All Lists]

Re: [PATCH] Linux Makefiles

To: "J . A . Magallon" <jamagallon@xxxxxxx>
Subject: Re: [PATCH] Linux Makefiles
From: Rasmus Tamstorf <tamstorf@xxxxxxxxxxxxx>
Date: Fri, 1 Dec 2000 16:08:38 -0800
Cc: OpenInventor Devel List <info-inventor-dev@xxxxxxxxxxx>
In-reply-to: <20001202004914.E3982@xxxxxxxxxxxxxxxx>
Sender: owner-info-inventor-dev@xxxxxxxxxxx
On Sat, 2 Dec 2000, J . A . Magallon wrote:

> Hi everyone.
> 
> I have been working to compile OpenInventor on a Linux Mandrake 7.2 - Cooker
> system. I have made some changes to Makefiles in order to make them more
> readable or suit better to the linux file system tree specs. Patch is 
> attached.
> I think it can be included in the CVS tree.
> 
> Changes affect make/ivcommonrules, make/commondefs and make/ivcommondefs.
> 
> Changes:
> 
> - Use 'make -Cdir' instead of '(cd $$i && $(MAKE))'. Less shell spawning. This
>   can only be used with GNU make (IRIX make has not the -C flag), but as the
>   README.FIRST file says it has to be built wi gmake...
> - If use make -Cdir, don't test if dir exists. If it is not there, make will
>   complain and give the error msg that now is done manually. Also informs
>   about the directory change ('entering....' and 'leaving...').
> - Changed test-dir-and-make-it from
>       if [ ! -d dir ]; then mkdir -p dir; fi
>   to
>       mkdir -p dir
>   This also works on IRIX. If the dir exists, mkdir -p silently ignores, so
>   no test needed. Also mkdir -p can handle multiple arguments.
> - bzip2'ing of man pages.

bzip2 is not widely available on IRIX machines, so I don't think this
should be the default action. Maybe an option ...

> - location of files. In linux there should not be any /usr/demos. All goes in
>   /usr/share. Specific changes are:

Isn't this somewhat of a religious issue ? Some like it in /usr/man others
like it in /usr/share/man ... It almost seems better if $(IVROOT) would
specify everything up until /man. That way you could set it to '/usr' or
'/usr/share' according to taste, but maybe that will break other things.

Rasmus

-----------------------------------------------------------------------------
Rasmus.Tamstorf@xxxxxxxxxx         "A problem worthy of attack, 
Walt Disney Feature Animation       proves its worth by hitting back" Kumbel
-----------------------------------------------------------------------------



<Prev in Thread] Current Thread [Next in Thread>