Cleanup makefile (#1132)

This commit is contained in:
Stephen 2018-05-11 20:36:10 -07:00 committed by Nguyen Anh Quynh
parent ceb546e1da
commit 72cfda9e2e

View File

@ -334,9 +334,9 @@ all: $(LIBRARY) $(ARCHIVE) $(PKGCFGF)
ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
@V=$(V) CC=$(CC) $(MAKE) -C cstool
ifndef BUILDDIR
cd tests && $(MAKE)
$(MAKE) -C tests
else
cd tests && $(MAKE) BUILDDIR=$(BLDIR)
$(MAKE) -C tests BUILDDIR=$(BLDIR)
endif
$(call install-library,$(BLDIR)/tests/)
endif
@ -407,7 +407,7 @@ clean:
$(MAKE) -C cstool clean
ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
cd tests && $(MAKE) clean
$(MAKE) -C tests clean
rm -f $(BLDIR)/tests/lib$(LIBNAME).$(EXT)
endif
@ -416,9 +416,9 @@ ifdef BUILDDIR
endif
ifeq (,$(findstring yes,$(CAPSTONE_BUILD_CORE_ONLY)))
cd bindings/python && $(MAKE) clean
cd bindings/java && $(MAKE) clean
cd bindings/ocaml && $(MAKE) clean
$(MAKE) -C bindings/python clean
$(MAKE) -C bindings/java clean
$(MAKE) -C bindings/ocaml clean
endif