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