ref: 698ed9d5fccd2eecfcfe16c378e95204b569732f
parent: b07a8501d6b3a4fd75a73c26637814bde9bedb98
author: Antonio Niño Díaz <[email protected]>
date: Thu Jan 25 17:12:31 EST 2018
Don't clean html files with `make clean` Added a new target to remove html files: `cleanwwwman`. Signed-off-by: Antonio Niño Díaz <[email protected]>
--- a/Makefile
+++ b/Makefile
@@ -114,16 +114,25 @@
.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.