I am trying to copy files using my rule, but my rule does not start:
BUILDDIR = build 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 does not start, although $ (BUILDDIR) and a copy are running. I am not sure what is wrong with my Makefile. I would like to get the rule $ (COPY_FILES) to work, if possible (and delete the copy). Anyone please know?
source share