make file

This is a discussion on make file within the Linux Programming forums, part of the Platform Specific Boards category; so im not sure if its here or C forum for this but i basically need help with make files ...

  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 wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,452
    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.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Captain Crash brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,236
    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, 09:46 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21