Fix race condition in Makefile
@ -141,9 +141,11 @@ all: $(LIBRARY) $(ARCHIVE) $(PKGCFGF)
$(MAKE) -C tests
$(INSTALL_DATA) lib$(LIBNAME).$(EXT) tests
$(LIBRARY): diet $(LIBOBJ)
$(LIBRARY): $(LIBOBJ)
$(CC) $(LDFLAGS) $(LIBOBJ) -o $(LIBRARY)
$(LIBOBJ): diet
# generate include/diet.h
diet:
@echo "#ifndef CAPSTONE_DIET_H" > include/diet.h