ubuntu - Is there any way to see make file with all variables substituted

06
2014-04
  • user1721949

    I have huge long makefile written by some other guy, where all coomands contain variables.

    In order to decode what this command is doing i have look around what that variable is and its taking too much time.

    is there any way to see the make makefile where all variables are automatically substututed or dry running so that i can see what each function is doing

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    linux - Getting error : make: *** /lib/modules/2.6.31-20-generic/build: No such file or directory on Ubuntu 9.1
  • user36637

    When trying to install my WiFi card's driver on Ubuntu 9.1, I run the make command and get the following error:

    make: *** /lib/modules/2.6.31-20-generic/build: No such file or directory
    

    Any ideas how to fix this?


  • Related Answers
  • Jelle Veraa

    This site gives a better solution/copy-paste code line to get the proper headers: http://www.cyberciti.biz/faq/howto-install-kernel-headers-package/

    sudo apt-get update && sudo apt-get install linux-headers-$(uname -r)
    
  • Shiki

    sudo apt-get install linux-headers-generic Try this. If it wont work, comment and we'll figure out the package. (I hope you installed build-essential package.)