"make install" command fails with error
"mkdir: cannot create directory
‘/usr/lib/gcc/x86_64-redhat-linux/4.8.1/plugin/python’:
File exists"
The patch adds "-p" option to mkdir invocation.
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index aa3106a..6bf1ee8 100644
--- a/Makefile
+++ b/Makefile
@@ -226,7 +226,7 @@ install: $(PLUGIN_DSO) gcc-with-$(PLUGIN_NAME).1.gz
cp $(PLUGIN_DSO) $(DESTDIR)$(GCCPLUGINS_DIR)
- mkdir $(DESTDIR)$(GCCPLUGINS_DIR)/$(PLUGIN_DIR)
+ mkdir -p $(DESTDIR)$(GCCPLUGINS_DIR)/$(PLUGIN_DIR)
cp -a gccutils $(DESTDIR)$(GCCPLUGINS_DIR)/$(PLUGIN_DIR)
cp -a libcpychecker $(DESTDIR)$(GCCPLUGINS_DIR)/$(PLUGIN_DIR)
--
1.8.3.1