fix Q3Pack support
[xonotic/netradiant.git] / Makefile
index f9869502334c220f8cf6fb47d45e41cb358f1601..a78411cf717ffc277b9b9214d9b8673509d5f189 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -714,8 +714,12 @@ makeversion:
 .PHONY: install-data
 install-data:
        $(MKDIR) install/games
+       $(FIND) install/ -name .svn -exec $(RM_R) {} \; -prune; \
        set -ex; \
        for GAME in games/*; do \
+               if [ -d "$$GAME/tools" ]; then \
+                       GAME=$$GAME/tools; \
+               fi; \
                for GAMEFILE in $$GAME/games/*.game; do \
                        $(CP) "$$GAMEFILE" install/games/; \
                done; \