Fix race condition in Makefile
diff --git a/Makefile b/Makefile
index bd6cf51..f443c46 100644
--- a/Makefile
+++ b/Makefile
@@ -141,9 +141,11 @@
 	$(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