mirror of
https://github.com/capstone-engine/capstone.git
synced 2024-11-26 23:10:32 +00:00
Makefile: rename BUILD_CORE_ONLY to CAPSTONE_BUILD_CORE_ONLY for consistency
This commit is contained in:
parent
08a21a6558
commit
19af3ec9e0
6
Makefile
6
Makefile
@ -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
|
||||
|
@ -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("..")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user