As I said, the line $(MYEXTLIB): mylib/Makefile means that the requirement MYEXTLIB depends on "mylib/Makefile" which in itself can be a requirement with its own rules on how to be satisfied and therefore somehow create "mylib/Makefile".
I'm fairly confident that the creation of "mylib/Makefile" depends solely upon the existence of mylib/Makefile.PL. (But "confidence" != "expertise".)
I think the line $(MYEXTLIB): mylib/Makefile comes into play when "libmylib.a" is created during the "make" stage.
Maybe I am running this tutorial wrong but for me, "mylib/Makefile" is not created automatically whenever I run perl Makefile.PL && make in Mytest2 dir
This is also something that I'm not seeing.
For me "mylib/Makefile" is being created by the perl Makefile.PL step. Did you first create mylib/Makefile.PL ?
Cheers, Rob
Comment on Re^2: some questions about example 4 of perlxstut
You are right, I see Writing Makefile for Mytest2::mylib after running perl Makefile.PL in Mytest2 dir. I don't know why I did not see it before and had to add the extra rule.