Skip to contentSkip to conversation

Create the BINDIR too during make install

PATCH New Michael Stefaniuc 1 participant 1 message Oct 2, 2017 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Create the BINDIR too during make install

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

---
 Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Makefile +1 -1
index 9c7f721..2b59d45 100644
@@ -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); \
Signature · 1 line
2.9.5