Thread: make file

  1. #1
    Registered User
    Join Date
    Aug 2009
    Posts
    192

    make file

    so im not sure if its here or C forum for this but i basically need help with make files its pretty simple im just having a hard time looking i tup online

    basically i have a directory
    /base

    then /base/extra

    i want the /base/Makefile to call /base/extra/Makefile in the /base/extra directory

    at first in the /base/Makefile
    i did the command

    make -f extra/Makefile

    but i realize it was executing that makefile in the /base directory so how do u make it go into the extra directory

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,660
    make -C extra -f Makefile
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Recursive invocations of make should use $(MAKE) instead of 'make'
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A development process
    By Noir in forum C Programming
    Replies: 37
    Last Post: 07-10-2011, 10:39 PM
  2. Newbie homework help
    By fossage in forum C Programming
    Replies: 3
    Last Post: 04-30-2009, 04:27 PM
  3. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  4. help with text input
    By Alphawaves in forum C Programming
    Replies: 8
    Last Post: 04-08-2007, 04:54 PM
  5. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM