r731 - trunk

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Sat Apr 29 15:11:38 EDT 2006


Author: thilo
Date: 2006-04-29 15:11:37 -0400 (Sat, 29 Apr 2006)
New Revision: 731

Modified:
   trunk/Makefile
Log:
Applied patch by Ben Noordhuis:
- Fix for "make copyfile" errors when certain parts are not built.
- SMP binary and QVMs now get copied when built


Modified: trunk/Makefile
===================================================================
--- trunk/Makefile	2006-04-28 17:31:02 UTC (rev 730)
+++ trunk/Makefile	2006-04-29 19:11:37 UTC (rev 731)
@@ -1672,12 +1672,23 @@
 copyfiles: build_release
 	@if [ ! -d $(COPYDIR)/baseq3 ]; then echo "You need to set COPYDIR to where your Quake3 data is!"; fi
 	-$(MKDIR) -p -m 0755 $(COPYDIR)/baseq3
+	-$(MKDIR) -p -m 0755 $(COPYDIR)/missionpack
+
+ifneq ($(BUILD_CLIENT),0)
 	$(INSTALL) -s -m 0755 $(BR)/ioquake3.$(ARCH)$(BINEXT) $(COPYDIR)/ioquake3.$(ARCH)$(BINEXT)
+endif
 
+ifneq ($(BUILD_CLIENT_SMP),0)
+	$(INSTALL) -s -m 0755 $(BR)/ioquake3-smp.$(ARCH)$(BINEXT) $(COPYDIR)/ioquake3-smp.$(ARCH)$(BINEXT)
+endif
+
+ifneq ($(BUILD_SERVER),0)
 	@if [ -f $(BR)/ioq3ded.$(ARCH)$(BINEXT) ]; then \
 		$(INSTALL) -s -m 0755 $(BR)/ioq3ded.$(ARCH)$(BINEXT) $(COPYDIR)/ioq3ded.$(ARCH)$(BINEXT); \
-	fi 
-	
+	fi
+endif
+
+ifneq ($(BUILD_GAME_SO),0)	
 	$(INSTALL) -s -m 0755 $(BR)/baseq3/cgame$(ARCH).$(SHLIBEXT) \
 					$(COPYDIR)/baseq3/.
 	$(INSTALL) -s -m 0755 $(BR)/baseq3/qagame$(ARCH).$(SHLIBEXT) \
@@ -1691,7 +1702,19 @@
 					$(COPYDIR)/missionpack/.
 	$(INSTALL) -s -m 0755 $(BR)/missionpack/ui$(ARCH).$(SHLIBEXT) \
 					$(COPYDIR)/missionpack/.
+endif
 
+ifneq ($(BUILD_GAME_QVM),0)
+	-$(MKDIR) -p -m 0755 $(COPYDIR)/baseq3/vm
+	$(INSTALL) -m 0755 $(BR)/baseq3/vm/qagame.qvm $(COPYDIR)/baseq3/vm/qagame.qvm
+	$(INSTALL) -m 0755 $(BR)/baseq3/vm/cgame.qvm $(COPYDIR)/baseq3/vm/cgame.qvm
+	$(INSTALL) -m 0755 $(BR)/baseq3/vm/ui.qvm $(COPYDIR)/baseq3/vm/ui.qvm
+	-$(MKDIR) -p -m 0755 $(COPYDIR)/missionpack/vm
+	$(INSTALL) -m 0755 $(BR)/missionpack/vm/qagame.qvm $(COPYDIR)/missionpack/vm/qagame.qvm
+	$(INSTALL) -m 0755 $(BR)/missionpack/vm/cgame.qvm $(COPYDIR)/missionpack/vm/cgame.qvm
+	$(INSTALL) -m 0755 $(BR)/missionpack/vm/ui.qvm $(COPYDIR)/missionpack/vm/ui.qvm
+endif
+
 clean: clean-debug clean-release
 	$(MAKE) -C $(LOKISETUPDIR) clean
 




More information about the quake3-commits mailing list