From: sparky4 Date: Thu, 5 Jan 2017 14:47:25 +0000 (-0600) Subject: makefile fixed from ym mistake from yesterday. i made improvements to the automated... X-Git-Url: http://4ch.mooo.com/gitweb/?a=commitdiff_plain;h=7b711305b56b7d8ea05d6cb9a7f4838172cd4ac1;p=16.git makefile fixed from ym mistake from yesterday. i made improvements to the automated distribution functions of the make file <3 --- diff --git a/makefile b/makefile index 0aaf20a6..5b9c1c81 100755 --- a/makefile +++ b/makefile @@ -375,9 +375,9 @@ comq: .symbolic @*upx -9 $(UPXQ) $(EXEC) www: .symbolic - @if exist /var/www/$(EXEC)* @$(REMOVECOMMAND) -f /var/www/$(EXEC)* - @$(REMOVECOMMAND) -f /var/www/*.exe.zip* - @$(COPYCOMMAND) ./$(EXEC) /var/www/ + @for %f in (/var/www/$(EXEC)) do @if exist /var/www/%f $(REMOVECOMMAND) /var/www/%f + @$(REMOVECOMMAND) /var/www/*.exe.zip* + @for %f in ($(EXEC)) do @if exist %f @$(COPYCOMMAND) %f /var/www/ @./src/util/z.sh $(EXEC) $(EXEC) ####@wmake -h wwwext