[Cocci] [PATCH] Create the BINDIR too during make install

Michael Stefaniuc mstefani at mykolab.com
Mon Oct 2 23:05:44 CEST 2017


Fixes:
make install
...
/usr/bin/install -c -m 755 spatch.opt /usr/local/packages/coccinelle-1.0.6-318-g0bf5304/bin/spatch
/usr/bin/install: cannot create regular file '/usr/local/packages/coccinelle-1.0.6-318-g0bf5304/bin/spatch': No such file or directory
Makefile:262: recipe for target 'install-spatch' failed
make: *** [install-spatch] Error 1

Signed-off-by: Michael Stefaniuc <mstefani at mykolab.com>
---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Makefile b/Makefile
index 9c7f721..2b59d45 100644
--- a/Makefile
+++ b/Makefile
@@ -259,7 +259,7 @@ install-bash:
 
 .PHONY: install-spatch
 install-spatch : spatch$(TOOLS_SUFFIX)
-	$(MKDIR_P) $(DESTDIR)$(LIBDIR)
+	$(MKDIR_P) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR)
 	if test -f bundles/pyml/dllpyml_stubs.so; then \
 		$(INSTALL_PROGRAM) bundles/pyml/dllpyml_stubs.so \
 			$(DESTDIR)$(LIBDIR); \
-- 
2.9.5



More information about the Cocci mailing list