Thanks Maxime - feedback is always welcome. Can you file these as issues on the Make lesson's repository, or submit fixes as pull requests? (You may not have permissions to do the former, GitHub being GitHub, but you should be able to do the latter.) We've found in the past that it's easier to track things if we keep the discussion in one place, and GitHub seems to be that place...
Cheers,
Greg

On 2015-08-03 8:15 PM, Maxime Boissonneault wrote:
Hi,
I just went through the lesson Make.

It is rather good. A few comments :

- I am skeptical that Make functions can be classified as "novice" content

- Maybe add that you can specify more than one target with the same rule (without using % that catches anything).

- For the automatic variables, I find it easier to understand (and more readable) $* that replaces the stem of the pattern, than remembering $@ and $<, i.e. :

%.o: %.c %.h
    $(CC) $(CFLAGS) -c $*.c -o $*.o

rather than
%.o: %.c %.h
     $(CC) $(CFLAGS) -c $< -o $@


Cheers,

Maxime


Le 2015-06-18 14:01, Greg Wilson a écrit :
We now have a lesson on using Make that's actually human-readable (unlike the one I did for version 4). See http://software-carpentry.org/blog/2015/06/adding-a-lesson-on-make.html for the post - many thanks to Mike Jackson and Steve Croucher for putting it together. Additions, corrections, suggestions, and everything else would be very welcome.
Cheers,
Greg




--
Dr. Greg Wilson    | [email protected]
Software Carpentry | http://software-carpentry.org


_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org

Reply via email to