Open kubrat opened 6 years ago
That's because NTFS is case-insensitive. Perl has two makefiles - "$firstmakefile" (which is usually detected as "makefile") and Makefile. Makefile is created first. It is then executed with make
to create the main makefile, i.e. "$firstmakefile". Before creating "$firstmakefile", Makefile will run rm -f $firstmakefile
.
Since NTFS is case-insensitive, "makefile" and "Makefile" are the same file, thus Makefile deletes itself.
One possible workaround for this is to rename Makefile to something else (such as MyMakefile) , and add "-f MyMakefile" to all make invocations that are expected to execute that file, since otherwise make won't know what to run.