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
_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org