From efd5f47bf6d6e3e2dbc3c2fc5f214965276f31e0 Mon Sep 17 00:00:00 2001 From: Zack Middleton Date: Thu, 11 Aug 2011 05:51:08 +0000 Subject: [PATCH] Fixed copyfiles when USE_RENDERER_DLOPEN is disabled. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 1544f36d..5bb591dd 100644 --- a/Makefile +++ b/Makefile @@ -2360,17 +2360,27 @@ TOOLSOBJ = $(LBURGOBJ) $(Q3CPPOBJ) $(Q3RCCOBJ) $(Q3LCCOBJ) $(Q3ASMOBJ) copyfiles: release @if [ ! -d $(COPYDIR)/baseq3 ]; then echo "You need to set COPYDIR to where your Quake3 data is!"; fi +ifneq ($(BUILD_GAME_SO),0) -$(MKDIR) -p -m 0755 $(COPYDIR)/baseq3 + ifneq ($(BUILD_MISSIONPACK),0) -$(MKDIR) -p -m 0755 $(COPYDIR)/missionpack + endif +endif ifneq ($(BUILD_CLIENT),0) $(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/ioquake3$(FULLBINEXT) $(COPYBINDIR)/ioquake3$(FULLBINEXT) + ifneq ($(USE_RENDERER_DLOPEN),0) $(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/renderer_opengl1_$(SHLIBNAME) $(COPYBINDIR)/renderer_opengl1_$(SHLIBNAME) + endif endif # Don't copy the SMP until it's working together with SDL. ifneq ($(BUILD_CLIENT_SMP),0) + ifneq ($(USE_RENDERER_DLOPEN),0) $(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/renderer_opengl1_smp_$(SHLIBNAME) $(COPYBINDIR)/renderer_opengl1_smp_$(SHLIBNAME) + else + $(INSTALL) $(STRIP_FLAG) -m 0755 $(BR)/ioquake3-smp$(FULLBINEXT) $(COPYBINDIR)/ioquake3-smp$(FULLBINEXT) + endif endif ifneq ($(BUILD_SERVER),0)