[CRIU] [PATCH 2/3] make: remove implicit rules from top-make
Dmitry Safonov
dsafonov at virtuozzo.com
Tue Sep 20 09:20:57 PDT 2016
Otherwise, on some environments, GNU/Make may try to expand
implicit rules right in the top Makefile.
Fixes:
[criu]$ make criu/parasite-syscall.o
...
make -r -R -f /criu/scripts/nmk/scripts/main.mk makefile=Makefile obj=criu criu/parasite-syscall.c
make[1]: Entering directory `/criu'
make[1]: Nothing to be done for `criu/parasite-syscall.c'.
make[1]: Leaving directory `/criu'
gcc -O2 -g -Wall -Wformat-security -Werror -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -c -o criu/parasite-syscall.o criu/parasite-syscall.c
criu/parasite-syscall.c:8:22: fatal error: protobuf.h: No such file or directory
#include "protobuf.h"
^
compilation terminated.
Cc: Cyrill Gorcunov <gorcunov at openvz.org>
Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
Makefile | 3 +++
1 file changed, 3 insertions(+)
diff --git a/Makefile b/Makefile
index 05946a1bd16e..41565e84ed0c 100644
--- a/Makefile
+++ b/Makefile
@@ -340,6 +340,9 @@ include Makefile.install
.DEFAULT_GOAL := all
+# Disable implicit rules in _this_ Makefile.
+.SUFFIXES:
+
#
# Optional local include.
-include Makefile.local
--
2.9.0
More information about the CRIU
mailing list