[CRIU] [PATCH 1/2] Doc/Makefile: make clean less greedy

Kir Kolyshkin kir at openvz.org
Wed Jan 8 19:34:37 PST 2014


Only remove the files which we explicitly generate.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 Documentation/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Documentation/Makefile b/Documentation/Makefile
index 0a1edac..5fa2f4e 100644
--- a/Documentation/Makefile
+++ b/Documentation/Makefile
@@ -5,6 +5,7 @@ A2X		:= a2x
 XMLTO		:= xmlto
 
 SRC		+= criu.txt
+XMLS		:= $(patsubst %.txt,%.xml,$(SRC))
 MANS		:= $(patsubst %.txt,%.8,$(SRC))
 MAN8DIR		:= $(MANDIR)/man8
 
@@ -17,8 +18,7 @@ all: $(MANS)
 
 clean:
 	$(E) "  CLEAN   "
-	$(Q) rm -f ./*.xml
-	$(Q) rm -f ./*.8
+	$(Q) rm -f $(XMLS) $(MANS)
 
 install: $(MANS)
 	$(E) "  INSTALL " $(MANS)
-- 
1.8.1.4



More information about the CRIU mailing list