Makefile tricks

Wed, 20 Mar 2002 16:30:41 +0300

Dear  ghc-5.02.2-i386-unknown-linux,

(RedHat-6.1 Linux machine, libc-2.1.2),

Can you, please explain the following effect

   Main.hs:   main = putStr "hello\n"

          ghc -c -O Main.hs  +RTS -M10m -RTS

   -- Running --------------------
   $ tcsh
   > make obj
   ghc -c -O Main.hs  +RTS -M10m -RTS
   ghc: input file doesn't exist: +RTS
   ghc: unrecognised option: -M10m
   ghc: unrecognised option: -RTS

Now, type this to command line:

   > ghc -c -O Main.hs  +RTS -M10m -RTS

And it works.
This is so for the  lstcsh  shell too.

  > make -v
  GNU Make version 3.77, by Richard Stallman and Roland McGrath.

And it works correct under Debian Linux,
  GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
  Built for i586-pc-linux-gnu

I do not know, whether it is essential, but this RedHat machine 
is a claster: for any job started, the system chooses itself 
appropriate machine to run this job on.
But I was told that  tcsh  switches off this clastering.

Also I am not sure, that this refers to GHC.
I tried to set  
          ls -la

and it works.
Maybe, the new  ssh  version bug?

Serge Mechveliani