[CRIU] [PATCH 4/7] crit: add crit target to Makefile and *.pyc to .gitignore

Ruslan Kuprieiev kupruser at gmail.com
Wed Dec 31 04:06:50 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 6b09115..b0d6e32 100644
--- a/Makefile
+++ b/Makefile
@@ -142,7 +142,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
@@ -196,6 +196,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
 
@@ -226,6 +229,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"
-- 
2.1.0



More information about the CRIU mailing list