[PATCH 7/8] Makefile: Don't remove .fcv and .ltms files in target 'clean'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From e0bedfe0587f182db5401fe7c244e4b8487aaab9 Mon Sep 17 00:00:00 2001
From: Akira Yokosawa <akiyks@xxxxxxxxx>
Date: Sat, 23 Feb 2019 19:40:38 +0900
Subject: [PATCH 7/8] Makefile: Don't remove .fcv and .ltms files in target 'clean'

In the case of a build error due to out-of-date CodeSamples/snippets.d,
Removing the outdated file suffices. .fcv and .ltms files need not
be removed.  Defer their removal to the target 'distclean'.

While we are here, add CodeSamples/snippets.mk to OBSOLETE_FILES.

Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 648091a..c07dde0 100644
--- a/Makefile
+++ b/Makefile
@@ -37,7 +37,7 @@ SVGSOURCES := $(wildcard */*.svg)
 FAKE_EPS_FROM_SVG := $(SVGSOURCES:%.svg=%.eps)
 PDFTARGETS_OF_SVG := $(SVGSOURCES:%.svg=%.pdf)
 
-OBSOLETE_FILES = extraction $(FAKE_EPS_FROM_SVG)
+OBSOLETE_FILES = extraction $(FAKE_EPS_FROM_SVG) CodeSamples/snippets.mk
 
 EPSSOURCES_DUP := \
 	$(wildcard */*.eps) \
@@ -346,16 +346,16 @@ clean:
 	find . -name '*.aux' -o -name '*.blg' \
 		-o -name '*.dvi' -o -name '*.log' \
 		-o -name '*.qqz' -o -name '*.toc' -o -name '*.bbl' \
-		-o -name '*.fcv' -o -name '*.ltms' \
 		-o -name '*.pdfp' -o -name '*.pdfq' | xargs rm -f
 	rm -f perfbook_flat.tex perfbook*.out perfbook-*.tex
 	rm -f $(LATEXGENERATED)
-	rm -f CodeSamples/snippets.mk CodeSamples/snippets.d
+	rm -f CodeSamples/snippets.d
 	@rm -f $(OBSOLETE_FILES)
 
 distclean: clean
 	sh utilities/cleanpdf.sh
 	rm -f $(EPSSOURCES_FROM_DOT) $(EPSSOURCES_FROM_TEX) $(EPSSOURCES_FROM_FIG)
+	find . -name '*.fcv' -o -name '*.ltms' | xargs rm -f
 
 touchsvg:
 	find . -name '*.svg' | xargs touch
-- 
2.7.4





[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux