include $(CONFIG) FILESDIR := files ARCHIVEDIR := archive all: $(ARCHIVEDIR) tar -cf $(OUT) -C $(ARCHIVEDIR) . .PHONY: $(ARCHIVEDIR) $(ARCHIVEDIR): rm -rf $(ARCHIVEDIR) cp -r $(FILESDIR)/ $(ARCHIVEDIR)/