From 87b2e4fdb6ffd3f2f33a1da5572c684e8858bf7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Poulin?= Date: Thu, 9 Jun 2016 23:59:47 -0400 Subject: [PATCH] Makefile: Don't add _install_tmp to itself on make install. When OpenWrt builder uses make install, some conditions cause make install to include _install_tmp as a submodule and causes cp to error with cp: _install_tmp/.py is the same file as /.py --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 7ae088359..a834d8f88 100644 --- a/Makefile +++ b/Makefile @@ -11,6 +11,7 @@ install: else \ for d in $$(find -maxdepth 1 -type d ! -name ".*"); do \ echo $$d; \ + [ "$$d" = "./_install_tmp" ] && continue; \ (cd $$d; sh -c $(CMD)); \ done \ fi