Fix 'make tools' target for ./configure

Fix update.pl wasn't able to recompile due to path error.
This commit is contained in:
Lighta 2015-03-15 04:24:58 -04:00
parent bae469e6c6
commit d1eeda3466
3 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@ -133,3 +133,4 @@ Thumbs.db
/.idea/rathena.iml
/.idea/vcs.xml
/.idea/workspace.xml
/build/

View File

@ -1,6 +1,6 @@
COMMON_OBJ = minicore.o malloc.o showmsg.o strlib.o utils.o des.o grfio.o
COMMON_DIR_OBJ = $(COMMON_OBJ:%=../common/obj_all/%)
COMMON_DIR_OBJ = $(COMMON_OBJ:%=../common/obj/%)
COMMON_H = $(shell ls ../common/*.h)
COMMON_INCLUDE = -I../common/

View File

@ -210,6 +210,7 @@ sub UpdateSQL { my($sBaseDir,$sInit,$rhFileState) = @_;
}
sub RunCompilation { my($sBaseDir,$sTarget) = @_;
chdir "$sBaseDir/..";
if($^O =~ "linux"){
print "Recompiling...\n";
system('./configure && make clean server');