[CRIU] [PATCH 4/7] crit: add crit target to Makefile and *.pyc to .gitignore
Ruslan Kuprieiev
kupruser at gmail.com
Mon Nov 3 07:56:36 PST 2014
Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>
---
.gitignore | 1 +
Makefile | 7 ++++++-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index 48ccf81..2391e90 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,6 +10,7 @@
*.so
.git-ignore
*.patch
+*.pyc
criu
cscope*
tags
diff --git a/Makefile b/Makefile
index f2d06ab..3a20b41 100644
--- a/Makefile
+++ b/Makefile
@@ -140,7 +140,7 @@ build-crtools := -r -R -f scripts/Makefile.build makefile=Makefile.crtools obj
PROGRAM := criu
.PHONY: all zdtm test rebuild clean distclean tags cscope \
- docs help pie protobuf $(ARCH_DIR) clean-built lib
+ docs help pie protobuf $(ARCH_DIR) clean-built lib crit
ifeq ($(GCOV),1)
%.o $(PROGRAM): override CFLAGS += --coverage
@@ -194,6 +194,9 @@ $(PROGRAM): $(SYSCALL-LIB) $(ARCH-LIB) $(PROGRAM-BUILTINS)
$(E) " LINK " $@
$(Q) $(CC) $(CFLAGS) $^ $(LIBS) $(LDFLAGS) $(GMONLDOPT) -rdynamic -o $@
+crit:
+ $(Q) $(MAKE) -C pycriu all
+
zdtm: all
$(Q) $(MAKE) -C test/zdtm all
@@ -224,6 +227,8 @@ clean: clean-built
$(Q) $(RM) -r ./gcov
$(Q) $(RM) protobuf-desc-gen.h
$(Q) $(MAKE) -C test $@
+ $(Q) $(MAKE) -C pycriu $@
+ $(Q) $(RM) ./*.pyc
distclean: clean
$(E) " DISTCLEAN"
--
1.9.3
More information about the CRIU
mailing list