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 <antonio_nd@outlook.com>
This commit is contained in:
Antonio Niño Díaz
2018-01-25 22:12:31 +00:00
parent b07a8501d6
commit 698ed9d5fc

View File

@@ -114,17 +114,26 @@ rgbgfx: ${rgbgfx_obj}
.c.o: .c.o:
$Q${CC} ${REALCFLAGS} ${PNGCFLAGS} -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: clean:
$Q${RM} docs/rgbds.7.html docs/gbz80.7.html docs/rgbds.5.html $Q${RM} rgbasm rgbasm.exe ${rgbasm_obj}
$Q${RM} rgbasm rgbasm.exe ${rgbasm_obj} docs/rgbasm.1.html docs/rgbasm.5.html $Q${RM} rgblink rgblink.exe ${rgblink_obj}
$Q${RM} rgblink rgblink.exe ${rgblink_obj} docs/rgblink.1.html docs/rgblink.5.html $Q${RM} rgbfix rgbfix.exe ${rgbfix_obj}
$Q${RM} rgbfix rgbfix.exe ${rgbfix_obj} docs/rgbfix.1.html $Q${RM} rgbgfx rgbgfx.exe ${rgbgfx_obj}
$Q${RM} rgbgfx rgbgfx.exe ${rgbgfx_obj} docs/rgbgfx.1.html
$Q${RM} src/asm/asmy.c src/asm/asmy.h $Q${RM} src/asm/asmy.c src/asm/asmy.h
$Q${RM} src/link/lexer.c src/link/parser.c src/link/parser.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. # Target used to install the binaries and man pages.
install: all install: all