I have this issue with make that is driving me nuts. I have a directory with files Makefile2 and main.c, but the makefile doesn't see main.c:
Am I missing something here?
Code:
t14s% cd PCG
t14s% ls -l Makefile2 main.c
-rw-r--r-- 1 yousef yousef 24 Jul 23 01:59 Makefile2
-rw-r--r-- 1 yousef yousef 3198 Jul 22 08:18 main.c
t14s% cat Makefile2
default:
ls -l main.c
t14s% make -f Makefile2
ls -l main.c
ls: main.c: No such file or directory
*** Error code 1
Stop.
make: stopped in /usr/home/yousef/PCG
t14s% ls -l main.c
-rw-r--r-- 1 yousef yousef 3198 Jul 22 08:18 main.c
t14s%
Am I missing something here?