From e3959adc805cd8becd61f288b0448ae4d057ff71 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 11 Oct 2024 08:44:16 +0200 Subject: [PATCH] clean only clean temp files, full-clean clear the compiled result --- c/Makefile | 5 ++++- cpp/Makefile | 5 ++++- latex/book/Makefile | 5 ++++- latex/document/Makefile | 5 ++++- latex/exam/Makefile | 5 ++++- latex/presentation/Makefile | 4 ++-- 6 files changed, 22 insertions(+), 7 deletions(-) diff --git a/c/Makefile b/c/Makefile index edc7cea..cec02ab 100644 --- a/c/Makefile +++ b/c/Makefile @@ -28,4 +28,7 @@ all: release clean: - $(RM) $(OBJECTS) $(EXE).$(EXE_EXT) + $(RM) $(OBJECTS) + +full-clean: clean + $(RM) $(EXE).$(EXE_EXT) diff --git a/cpp/Makefile b/cpp/Makefile index b277c5a..06374ab 100644 --- a/cpp/Makefile +++ b/cpp/Makefile @@ -26,4 +26,7 @@ all: release clean: - $(RM) $(OBJECTS) $(EXE).$(EXE_EXT) + $(RM) $(OBJECTS) + +full-clean: clean + $(RM) $(EXE).$(EXE_EXT) diff --git a/latex/book/Makefile b/latex/book/Makefile index 8df6fdd..f9f7ec0 100644 --- a/latex/book/Makefile +++ b/latex/book/Makefile @@ -16,4 +16,7 @@ $(PDF): %.pdf: %.tex EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc bbl blg sta clean: - $(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + $(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + +full-clean: clean + $(RM) $(PDF) diff --git a/latex/document/Makefile b/latex/document/Makefile index b1bd6b6..3412b27 100644 --- a/latex/document/Makefile +++ b/latex/document/Makefile @@ -14,4 +14,7 @@ $(PDF): %.pdf: %.tex EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc clean: - $(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + $(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + +full-clean: clean + $(RM) $(PDF) diff --git a/latex/exam/Makefile b/latex/exam/Makefile index 861b46f..08aa3f0 100644 --- a/latex/exam/Makefile +++ b/latex/exam/Makefile @@ -14,4 +14,7 @@ $(PDF): %.pdf: %.tex EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc clean: - $(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + $(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + +full-clean: clean + $(RM) $(PDF) diff --git a/latex/presentation/Makefile b/latex/presentation/Makefile index 90b5fc5..9cc95f0 100644 --- a/latex/presentation/Makefile +++ b/latex/presentation/Makefile @@ -22,10 +22,10 @@ endif EXTS = aux fdb_latexmk fls log nav out snm synctex.gz toc vrb clean: - $(RM) $(PDF) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) + $(RM) _minted-$(NAME)/ $(foreach ext,$(EXTS),$(NAME).$(ext)) full-clean: clean - $(RM) $(PKG) + $(RM) $(PDF) $(PKG) updatepackage: @$(WGET) https://git.mylloon.fr/Anri/projektor/raw/branch/main/projektor.sty \