]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Fix autobuilds
authorTimePath <andrew.hardaker1995@gmail.com>
Wed, 9 Mar 2016 07:31:07 +0000 (18:31 +1100)
committerTimePath <andrew.hardaker1995@gmail.com>
Wed, 9 Mar 2016 07:31:30 +0000 (18:31 +1100)
qcsrc/Makefile

index 2bca4b9cd04f8cb5512940cfcc44d928e50b523e..9e94fb2e54b8dd17fb9db52a470dc8ea1b24446e 100644 (file)
@@ -52,8 +52,11 @@ pk3: qc
        zip -9 ${PK3} ${TXT} ${DAT} ${LNO}
        @ rm ${TXT} ${DAT} ${LNO}
 
+dirtree:
+       @mkdir -p ../.tmp
+
 .PHONY: clean
-clean:
+clean: | dirtree
        rm -f $(PROGS_OUT)/csprogs.dat
        rm -f $(PROGS_OUT)/progs.dat
        rm -f $(PROGS_OUT)/menu.dat
@@ -70,17 +73,17 @@ export CPP
 export QCCDEFS
 export QCCFLAGS
 
-$(PROGS_OUT)/csprogs.dat: client/progs.inc $(QCCVERSIONFILE)
+$(PROGS_OUT)/csprogs.dat: client/progs.inc $(QCCVERSIONFILE) | dirtree
        @echo make[1]: Entering directory \`$(PWD)/client\'
        sh ./qcc.sh client $@ $<
 -include ../.tmp/client.d
 
-$(PROGS_OUT)/progs.dat: server/progs.inc $(QCCVERSIONFILE)
+$(PROGS_OUT)/progs.dat: server/progs.inc $(QCCVERSIONFILE) | dirtree
        @echo make[1]: Entering directory \`$(PWD)/server\'
        sh ./qcc.sh server $@ $<
 -include ../.tmp/server.d
 
-$(PROGS_OUT)/menu.dat: menu/progs.inc $(QCCVERSIONFILE)
+$(PROGS_OUT)/menu.dat: menu/progs.inc $(QCCVERSIONFILE) | dirtree
        @echo make[1]: Entering directory \`$(PWD)/menu\'
        sh ./qcc.sh menu $@ $<
 -include ../.tmp/menu.d