Makefile: rename BUILD_CORE_ONLY to CAPSTONE_BUILD_CORE_ONLY for consistency

test2
Nguyen Anh Quynh 10 years ago
parent 639a3f04ef
commit 794a706b3e
  1. 6
      Makefile
  2. 2
      bindings/python/setup.py

@ -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

@ -134,7 +134,7 @@ class custom_build_clib(build_clib):
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("..")

Loading…
Cancel
Save