Find the answer to your Linux question:
Results 1 to 5 of 5
Hello, I have a make file for compiling stanalone executable. I am instructed to type "make all" in command window. May I know what is this command and how it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2013
    Posts
    6

    what is "make all" command in Linux


    Hello,

    I have a make file for compiling stanalone executable. I am instructed to type "make all" in command window. May I know what is this command and how it should be used.

    While I typed this command in terminal window, I am getting following error

    compile_mg1g1.ksh # run mg1g1 compile script
    /bin/sh: compile_mg1g1.ksh: command not found
    make: *** [lib] Error 127

    somebody please help me what is this?????

  2. #2
    Penguin of trust elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    3,571
    Command window is the terminal. make will be a script that runs the compiler among other things so open a terminal and run
    Code:
    make all
    in the appropriate directory
    What do we want?
    Time machines!

    When do we want 'em?
    Doesn't really matter does it!?


    The Fifth Continent

  3. #3
    Just Joined!
    Join Date
    Feb 2013
    Posts
    6
    dear Elija,

    Thanks a lot for the reply. I will check that

  4. #4
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    Hi Ajain

    make utlity advantage come into picture when compiling large programs.
    If large programs there is no need to recompile entire program every time when small changes happen.

    make utility determines which pieces of the source code need to be recompiled and it issues commands to recompile only those particular portion since the last time the program was compiled

    Below is the make command syntax. Can be used without target

    make <target>


    When the make command is executed, it looks for a file named makefile or Makefile in the current directory. It parses the found Makefile, and constructs a dependency tree. Based on the desired make target specified (or implied) on the command-line, make checks if the dependency files of that target exists.

    four <targets> in the Makefile are

    all
    main.o
    module.o
    clean

  5. #5
    Just Joined!
    Join Date
    Feb 2013
    Posts
    6
    Dear Nix Savy,

    Thanks a lot for the very good answer, really informative. I will work according to that.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •