Makefile: Copying files with a rule
I am trying to copy files using a my rule but my rule does not get triggered:
COPY_FILES = code/xml/schema/schema.xsd config.txt
all: $(BUILDDIR) $(COPY_FILES) copy
$(BUILDDIR):
mkdir -p $@
$(COPY_FILES):
cp -f $@ $(BUILDDIR)
copy:
cp -f $(COPY_FILES) $(BUILDDIR)
I am trying to use $(COPY_FILES) but it is not being triggered, although
$(BUILDDIR) and copy are triggered. I am not sure what is wrong with my
Makefile. Does anyone please know?
No comments:
Post a Comment