From 59023062712deb0becdb4af588afa242fdea76a0 Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sat, 7 Sep 2019 12:14:56 +0000 Subject: [PATCH] Have `make clean` delete all generated .o files Especially important if the file structure changes, to avoid leaving stale object files in non-fresh repos. --- Makefile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c07af573..b3e9343b 100644 --- a/Makefile +++ b/Makefile @@ -129,12 +129,13 @@ rgbgfx: ${rgblink_obj} # for the html documentation. clean: - $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} rgbasm rgbasm.exe src/asm/*.o + $Q${RM} rgblink rgblink.exe src/link/*.o + $Q${RM} rgbfix rgbfix.exe src/fix/*.o + $Q${RM} rgbgfx rgbgfx.exe src/gfx/*.o $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/extern/*.o # Target used to remove all html files generated by the wwwman target