Makefile: rename BUILD_CORE_ONLY to CAPSTONE_BUILD_CORE_ONLY for consistency

This commit is contained in:
Nguyen Anh Quynh 2015-01-30 09:07:51 +08:00
parent 08a21a6558
commit 19af3ec9e0
2 changed files with 4 additions and 4 deletions

View File

@ -308,7 +308,7 @@ PKGCFGF = $(BLDIR)/$(LIBNAME).pc
.PHONY: all clean install uninstall dist
all: $(LIBRARY) $(ARCHIVE) $(PKGCFGF)
ifeq (,$(findstring yes,$(BUILD_CORE_ONLY)))
ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
ifndef BUILDDIR
cd tests && $(MAKE)
else
@ -387,7 +387,7 @@ clean:
rm -f $(BLDIR)/lib$(LIBNAME).* $(BLDIR)/$(LIBNAME).*
rm -f $(PKGCFGF)
ifeq (,$(findstring yes,$(BUILD_CORE_ONLY)))
ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
cd tests && $(MAKE) clean
rm -f $(BLDIR)/tests/lib$(LIBNAME).$(EXT)
endif
@ -396,7 +396,7 @@ ifdef BUILDDIR
rm -rf $(BUILDDIR)
endif
ifeq (,$(findstring yes,$(BUILD_CORE_ONLY)))
ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
cd bindings/python && $(MAKE) clean
cd bindings/java && $(MAKE) clean
cd bindings/ocaml && $(MAKE) clean

View File

@ -135,7 +135,7 @@ class custom_build_clib(build_clib):
# platform description refers at https://docs.python.org/2/library/sys.html#sys.platform
if SYSTEM != "win32":
os.chmod("make.sh", stat.S_IREAD|stat.S_IEXEC)
os.system("BUILD_CORE_ONLY=yes ./make.sh")
os.system("CAPSTONE_BUILD_CORE_ONLY=yes ./make.sh")
os.chdir("..")