diff --git a/BuGS/Makefile b/BuGS/Makefile index 7f5b34f..8efcd3a 100644 --- a/BuGS/Makefile +++ b/BuGS/Makefile @@ -80,7 +80,7 @@ MD_SRCS=Read.Me.md # Then, during the copy phase, mySystemFile will be copied into the System # folder and a folder newDir will be created and anotherFile will be copied # into there. -COPYDIRS=$(GENDIR)/Teach +COPYDIRS= # By default, the build expects that you have GSplus in the path: # /Applications/GSplus.app/Contents/MacOS/gsplus diff --git a/BuGS/make/tail.mk b/BuGS/make/tail.mk index 9a8f954..5995a2c 100644 --- a/BuGS/make/tail.mk +++ b/BuGS/make/tail.mk @@ -72,6 +72,9 @@ REZ_DEPS=$(patsubst %.rez, $(OBJDIR)/%.rez.d, $(REZ_SRCS)) REZ_OBJS=$(patsubst %.rez, $(OBJDIR)/%.r, $(REZ_SRCS)) TEACH_FILES=$(patsubst %.md, $(GENDIR)/Teach/%, $(MD_SRCS)) +ifneq ($(TEACH_FILES),) + COPYDIRS+=$(GENDIR)/Teach +endif ifneq ($(firstword $(REZ_SRCS)), $(lastword $(REZ_SRCS))) $(error Only a single resource file supported, found $(REZ_SRCS))