%% Morten Gulbrandsen <[EMAIL PROTECTED]> writes: mg> make mg> cc -c -o helloworld.o helloworld.c mg> cc -o helloworld helloworld.o
mg> according to the manual mg> http://www.gnu.org/software/make/manual/html_chapter/make_3.html#SEC13 mg> then you would expect to see this output: mg> name1 = Makefile mg> name2 = inc.mk Why would you expect to see that? Make always runs the first defined target; in this case you include inc.mk, which defines the target "helloworld" first, before you define the "all" target. So, when you run make, it builds helloworld. If you want it to build "all", then either run "make all" or define that target first before including inc.mk. -- ------------------------------------------------------------------------------- Paul D. Smith <[EMAIL PROTECTED]> Find some GNU make tips at: http://www.gnu.org http://make.paulandlesley.org "Please remain calm...I may be mad, but I am a professional." --Mad Scientist _______________________________________________ Help-make mailing list [email protected] http://lists.gnu.org/mailman/listinfo/help-make
