I have the file structure as shown below.  B.cpp includes A.h so
whenever I compile B.cpp, I want to check if A.h and A.cpp have been
updated and compile them if necessary.  I could create a target in
Makefile-B that would recompile A.cpp if needed, but this target
already exists in Makefile-A.  Is there anyway I could just execute
the target in Makefile-A when my target in Makefile-B finds a need to
update it?

Thanks,
Jeremy

RootDir/
    PartA/
        Makefile-A
        A.cpp
        A.h
    PartB/
        Makefile-B
        B.cpp
        B.h
    PartC/
        Makefile-C
        C.cpp
        C.h


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to