From 698ed9d5fccd2eecfcfe16c378e95204b569732f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Thu, 25 Jan 2018 22:12:31 +0000 Subject: [PATCH] Don't clean html files with `make clean` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a new target to remove html files: `cleanwwwman`. Signed-off-by: Antonio Niño Díaz --- Makefile | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 890e8c12..5d5114c2 100644 --- a/Makefile +++ b/Makefile @@ -114,17 +114,26 @@ rgbgfx: ${rgbgfx_obj} .c.o: $Q${CC} ${REALCFLAGS} ${PNGCFLAGS} -c -o $@ $< -# Target used to remove all files generated by other Makefile targets. +# Target used to remove all files generated by other Makefile targets, except +# for the html documentation. clean: - $Q${RM} docs/rgbds.7.html docs/gbz80.7.html docs/rgbds.5.html - $Q${RM} rgbasm rgbasm.exe ${rgbasm_obj} docs/rgbasm.1.html docs/rgbasm.5.html - $Q${RM} rgblink rgblink.exe ${rgblink_obj} docs/rgblink.1.html docs/rgblink.5.html - $Q${RM} rgbfix rgbfix.exe ${rgbfix_obj} docs/rgbfix.1.html - $Q${RM} rgbgfx rgbgfx.exe ${rgbgfx_obj} docs/rgbgfx.1.html + $Q${RM} rgbasm rgbasm.exe ${rgbasm_obj} + $Q${RM} rgblink rgblink.exe ${rgblink_obj} + $Q${RM} rgbfix rgbfix.exe ${rgbfix_obj} + $Q${RM} rgbgfx rgbgfx.exe ${rgbgfx_obj} $Q${RM} src/asm/asmy.c src/asm/asmy.h $Q${RM} src/link/lexer.c src/link/parser.c src/link/parser.h +# Target used to remove all html files generated by the wwwman target + +cleanwwwman: + $Q${RM} docs/rgbds.7.html docs/gbz80.7.html docs/rgbds.5.html + $Q${RM} docs/rgbasm.1.html docs/rgbasm.5.html + $Q${RM} docs/rgblink.1.html docs/rgblink.5.html + $Q${RM} docs/rgbfix.1.html + $Q${RM} docs/rgbgfx.1.html + # Target used to install the binaries and man pages. install: all