Copy directories in make file

LD:=C:/WindRiver/diab/5.9.3.0/WIN32/bin/dld.exe

CFILES:=$(wildcard *.c)
OBJFILES:=$(subst .c,.o, $(CFILES))
OBJ_PATH:=$(PRJ_PATH)/out/
ADDOBJFILES := $(addprefix $(OBJ_PATH),$(OBJFILES))

FILES:=C:/EB/tresos/workspace/Test_Spi/output/src 
copyfiles:
	cp  ~/C:/EB/tresos/workspace/Test_Spi/output/src/* /$(PRJ_PATH)/source/Config

OUTPUT = $(PRJ_PATH)/out/CPP_SPI

export PRJ_PATH:=$(CURDIR)

my_sources:=$(shell find '$(CURDIR)/source' -iname '*.c')
my_sources:=$(patsubst %specs.c, , $(my_sources))

my_obj_name:=$(subst .c,.o, $(my_sources))
my_obj_name += $(CURDIR)/flash_boot_header.o $(CURDIR)/flash_init_vle_Z4a.o

TARGET = -tPPCVLEES:simple		#:fssim                                                        
#TARGET = -tPPCE200Z4204N3VES:simple #:fssim  
LINKER_FILE = z4a_flash.ld


INCLUDE_FILES+=-I C:/WindRiver/diab/5.9.3.0/include

INCLUDE_FILES+=-I $(PRJ_PATH)/source/Mcu_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Spi_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Rte_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Base_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Port_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Det_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Dem_TS_T2D35M8I0R0
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Test_App


INCLUDE_FILES+=-I $(PRJ_PATH)/source/Config
INCLUDE_FILES+=-I $(PRJ_PATH)/source/Config


CC = dcc.exe 
AS = das.exe 
LD = dld.exe


#CFLAGS = $(TARGET) -c -g  -I  $(my_sources) -Xdebug-local-cie $(INCLUDE_FILES)

$(OUTPUT).out : $(my_obj_name) $(LINKER_FILE)
	$(LD) $(TARGET) -o $(OUTPUT).elf $(my_obj_name) -lc $(LINKER_FILE) -m6 > $(OUTPUT).map
	ddump  -Rv $(OUTPUT).elf -o $(OUTPUT).srec



%.o: %.c
	$(CC) $(TARGET) -Wa,-l -c -g $(INCLUDE_FILES) -D AUTOSAR_OS_NOT_USED -o $@ $< 

%.o: %.s
	$(AS) $(TARGET) -g -o $@ $< 

all: $(OUTPUT).out

clean:
		rm -f *.o $(OUTPUT).* $(shell find '$(CURDIR)/source' -iname '*.o')  $(shell find '$(CURDIR)/source' -iname '*.lst')


build: clean all

Hi i have written a make file like this,
Now i want to copy a directory which is in C drive to my current project directory . i have written the code for it

FILES:=C:/EB/tresos/workspace/Test_Spi/output/src 
copyfiles:
	cp  ~/C:/EB/tresos/workspace/Test_Spi/output/src/* /$(PRJ_PATH)/source/Config

but it is not working, Please help me in this as this is blocking for me

Moderator comments were removed during original forum migration.

Thanks for your feedback,
I have mentioned clearly that i want to copy the files in a directory from C drive to my current working directry , and i have used a command in makefile like

FILES:=C:/EB/tresos/workspace/Test_Spi/output/src 
copyfiles:
	cp  FILES $(PRJ_PATH)/source/Config 

here Files will be my source and Project path will be my destination and i need to copy the files to this destination folder.

You've posted what you hope to accomplish.

You haven't posted what actually happens when you run make.

Please post what actually happens when you run make.

Do not paraphrase errors, or post the text as links, images, or attachments if you can avoid it: Paste the exact message, in code tags, like

```text
 text 
```

or by selecting the text and using the button.

If you ignore this request again I will close the thread. We are not a psychic help service.