Berkeley CSUA MOTD:Entry 10081
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/07/08 [General] UID:1000 Activity:popular
7/8     

2003/9/4-5 [Computer/SW/Compilers] UID:10081 Activity:nil
9/4     I have a legacy make system that needs to work on several platforms
        w/ different compilers.  To build for platform X, you type
        "make -f X_make" at the top level.  I'm trying to get to a modicum
        of sanity about this by actually using dependencies correctly.
        The problem: I need to have dependencies in subdirectories, and
        those dependencies also need to be built using the X_make makefile,
        not Makefile or Y_make.  Is there a way to specify this without
        actually setting up a target for each subdirectory that does
        "cd subdir; make -f X_make; cd .." ?  Thanks in advance.
        \_ make depend?  or "makedepend"?