I want to run this command inside my makefile: export PATH=${PATH}:.
When I run it in the normal command prompt it works, but if I run it inside my makefile it does not.
Here's my makefile:
CC=gcc
CFLAGS=-C
all: P0
export PATH=${PATH}:.
P0 : main.o
$(CC) -0 P0 main.o
main.o: main.c
$(CC) $(CFLAGS) main.c
Pretty much I want to use the export command to run the executable P0 without the ./
Is there any other way to do this?