+++ /dev/null
-SCM := $(shell if [ -d .svn ]; then echo svn; elif [ -d ../.git ]; then echo git; fi)\r
-FTEQCC ?= fteqcc\r
-PERL ?= perl\r
-PK3NAME ?= `date +../data%Y%m%d.pk3`\r
-ZIP ?= 7za a -tzip -mx=9\r
-ZIPEXCLUDE ?= -x\!*.pk3 -xr\!\.svn -x\!qcsrc\r
-DIFF ?= diff\r
-\r
-FTEQCCFLAGS ?= -Werror -Wall -Wno-mundane -O3 -Ono-c -Ono-cs -flo\r
-FTEQCCFLAGS_PROGS ?= \r
-FTEQCCFLAGS_MENU ?= \r
-\r
-# NOTE: use -DUSE_FTE instead of -TFTE here!\r
-# It will automagically add an engine check with -TID and then change back to -TFTE\r
-FTEQCCFLAGS_CSPROGS ?= \r
-\r
-# nexuiz svn build system overrides this by command line argument\r
-NEX_BUILDSYSTEM =\r
-\r
-all: qc\r
-\r
-.PHONY: update-cvarcount\r
-update-cvarcount:\r
- [ "$(NEX_BUILDSYSTEM)" = "" ] || [ "$(NEX_BUILDSYSTEM)" = "1" ]\r
- [ "$(NEX_BUILDSYSTEM)" != "" ] || { ! [ -f ../misc/netradiant-NexuizPack/nexuiz.game/data/entities.def ] || $(DIFF) scripts/entities.def ../misc/netradiant-NexuizPack/nexuiz.game/data/entities.def || { echo entities.def mismatch, please merge ../misc/netradiant-NexuizPack/nexuiz.game/data/entities.def and scripts/entities.def; exit 1; }; }\r
- [ "$(NEX_BUILDSYSTEM)" != "" ] || { DO_NOT_RUN_MAKE=1 sh update-cvarcount.sh; }\r
-\r
-.PHONY: qc\r
-qc: update-cvarcount\r
- $(MAKE) qc-recursive\r
-\r
-.PHONY: qc-recursive\r
-qc-recursive: menu.dat progs.dat csprogs.dat\r
-\r
-.PHONY: skin\r
-skin: gfx/menu/default/skinvalues.txt\r
-\r
-.PHONY: pk3\r
-pk3: $(PK3NAME)\r
-\r
-.PHONY: pk3here\r
-pk3here: qc\r
- $(RM) $(PK3NAME); \\r
- set -ex; \\r
- ABSPK3NAME=$(PK3NAME); \\r
- case $$ABSPK3NAME in \\r
- /*) \\r
- ;; \\r
- *) \\r
- ABSPK3NAME=$$PWD/$$ABSPK3NAME; \\r
- ;; \\r
- esac; \\r
- $(ZIP) $(ZIPEXCLUDE) $$ABSPK3NAME .\r
-\r
-.PHONY: clean\r
-clean:\r
- rm -f progs.dat menu.dat csprogs.dat\r
-\r
-csprogs.dat: qcsrc/client/*.* qcsrc/common/*.* qcsrc/warpzonelib/*.*\r
- cd qcsrc/client && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_CSPROGS)\r
-\r
-progs.dat: qcsrc/server/*.* qcsrc/common/*.* qcsrc/server/*/*.* qcsrc/server/*/*/*.* qcsrc/warpzonelib/*.*\r
- cd qcsrc/server && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_PROGS)\r
-\r
-menu.dat: qcsrc/menu/*.* qcsrc/menu/*/*.* qcsrc/common/*.*\r
- cd qcsrc/menu && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_MENU)\r
-\r
-gfx/menu/default/skinvalues.txt: qcsrc/menu/skin-customizables.inc\r
- $(PERL) qcsrc/menu/skin-customizables.inc > gfx/menu/default/skinvalues.txt\r
-\r
-$(PK3NAME): qc\r
- $(RM) $(PK3NAME)\r
- set -ex; \\r
- ABSPK3NAME=$(PK3NAME); \\r
- case $$ABSPK3NAME in \\r
- /*) \\r
- ;; \\r
- *) \\r
- ABSPK3NAME=$$PWD/$$ABSPK3NAME; \\r
- ;; \\r
- esac; \\r
- TDIR=`mktemp -d -t nexuizpk3.XXXXXX`; \\r
- cp -v progs.dat csprogs.dat menu.dat $$TDIR/; \\r
- svn export --force . $$TDIR; \\r
- cd $$TDIR; \\r
- $(ZIP) $$ABSPK3NAME .\r
-\r
-.PHONY: testcase\r
-testcase:\r
- cd qcsrc/testcase && $(FTEQCC) $(FTEQCCFLAGS) $(FTEQCCFLAGS_CSPROGS) -DTESTCASE="$$TESTCASE"\r
-\r
-.PHONY: update commit diff log logv logupdate logvupdate revert\r
-update: $(SCM)-update\r
-commit: $(SCM)-commit\r
-diff: $(SCM)-diff\r
-log: $(SCM)-log\r
-logv: $(SCM)-logv\r
-revert: $(SCM)-revert\r
-logupdate: log update\r
-logvupdate: logv update\r
-\r
-.PHONY: svn-update\r
-svn-update:\r
- cd .. && svn update\r
-\r
-.PHONY: svn-commit\r
-svn-commit:\r
- cd .. && svn commit\r
-\r
-.PHONY: svn-diff\r
-svn-diff:\r
- cd .. && svn diff\r
-\r
-.PHONY: svn-log\r
-svn-log:\r
- cd .. && svn log -r HEAD:BASE\r
-\r
-.PHONY: svn-logv\r
-svn-logv:\r
- cd .. && svn log -r HEAD:BASE -v\r
-\r
-.PHONY: svn-revert\r
-svn-revert:\r
- svn revert -- $(FILE)\r
-\r
-.PHONY: git-update\r
-git-update:\r
- git pull origin\r
-\r
-.PHONY: git-commit\r
-git-commit:\r
- git commit -a || true\r
- if echo -n 'Also send to server? Hit Enter for yes, ^C for no. '; read -r L; then \\r
- git config svn-remote.svn.url svn://svn.icculus.org/nexuiz; \\r
- git config svn-remote.svn.fetch trunk:refs/remotes/origin/master; \\r
- git svn dcommit; \\r
- fi\r
-\r
-.PHONY: git-diff\r
-git-diff:\r
- git diff; git diff origin/master..HEAD; true\r
-\r
-.PHONY: git-log\r
-git-log:\r
- git fetch && git log HEAD..origin/master\r
-\r
-.PHONY: git-logv\r
-git-logv:\r
- git fetch && git log -v HEAD..origin/master\r
-\r
-.PHONY: git-revert\r
-git-revert:\r
- git checkout -- $(FILE)\r