Find the answer to your Linux question:
Results 1 to 6 of 6
Hi I have to Linux questions that confuse me long time ago although they may look quite basic! 1. What is the difference between the files: .bashrc and .bash_profile ? ...
  1. #1
    Just Joined!
    Join Date
    Jun 2006
    Location
    Egypt, CAIRO
    Posts
    48

    Quite Basic Linux question...

    Hi
    I have to Linux questions that confuse me long time ago although they may look quite basic!

    1. What is the difference between the files: .bashrc and .bash_profile ?

    2. What is the difference between: make, make install, makefile, ... is there anyother thing related to make else? mention please and give simple explaination.

    Thanks in advance,
    Ahmad,

    --
    Linux .. SusE 10 .. KDE ..

  2. #2
    Just Joined!
    Join Date
    Dec 2006
    Posts
    52
    .bashrc - is run everytime you open a terminal.
    .bash_profile - is run when you log on
    make - compiles your source code
    make install - puts the files in the correct places (binaries in */bin, man pages in */man, libraries in */lib etc)
    make clean - removes all the files created by make
    Makefile - results from the configure script's findings and directs the make process

  3. #3
    Just Joined!
    Join Date
    Jun 2006
    Location
    Egypt, CAIRO
    Posts
    48
    Thank you very much ennoil for your detailed answer
    But I still have some wonder..

    In a make file, i saw somethings like the follwoing lines:

    edihm : main.o source.c
    main.o gcc -o .....

    and some other things i don't remember exactly
    Can you kindly further explain them out in the same easy manner you followed in the above reply?

    Thanks a lot,
    Ahmad,

  4. #4
    Linux User
    Join Date
    Jun 2006
    Posts
    311
    Hi ahmad_abdulghany,
    Read the following websites to know more about make, Makefile and how it helps while doing compilation, installation or uninstallation, etc. : -

    http://users.actcom.co.il/~choo/lupg...makefiles.html

    http://www.opussoftware.com/tutorial/TutMakefile.htm

    http://www.wlug.org.nz/MakefileHowto

    With Regards,
    Thinker

  5. #5
    Just Joined!
    Join Date
    Dec 2006
    Posts
    52
    Unfortunately I can't tell you what is inside the make file. I know it has something to do with the way the code is compiled but I am not a programmer.
    I would say the links provided by Thinker would be a better resource.

  6. #6
    Linux Engineer rcgreen's Avatar
    Join Date
    May 2006
    Location
    the hills
    Posts
    1,114
    The makefile is a set of rules used by the make utility
    when it is run. For complex programs, the makefile can be very
    complex. It names the various source files, gives compiler options
    and organizes the compilation.

Posting Permissions

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