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

[PATCH] Linux Makefiles

To: OpenInventor Devel List <info-inventor-dev@xxxxxxxxxxx>
Subject: [PATCH] Linux Makefiles
From: "J . A . Magallon" <jamagallon@xxxxxxx>
Date: Sat, 2 Dec 2000 00:49:14 +0100
Reply-to: jamagallon@xxxxxxx
Sender: owner-info-inventor-dev@xxxxxxxxxxx
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.
- location of files. In linux there should not be any /usr/demos. All goes in
  /usr/share. Specific changes are:
  * man1 to /usr/share/man/man1 instead of /usr/man/man1
  * man3 to /usr/share/man/man3 instead of /usr/man/man3
  * help to /usr/share/Inventor/help instead of /usr/share/help
  * data to /usr/share/Inventor/data instead of /usr/share/data
  * demos to /usr/share/Inventor/demos instead of /usr/share/demos

  All prefixed with $(IVROOT)

Hope you agree with the changes and introduce them in CVS. Please mail me
or the list if you do to update my CVS tree.    

-- 
Juan Antonio Magallon Lacarta                                 #> cd /pub
mailto:jamagallon@xxxxxxx                                     #> more beer

Linux 2.2.18-pre24-vm #2 SMP Wed Nov 29 02:56:21 CET 2000 i686 unknown

Attachment: patch-make
Description: Binary data

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