From 0f4d543aebbfe37ecd2e19aefb00084798c5f89b Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 25 Sep 2019 03:17:36 +0200 Subject: [PATCH] Have `make clean` delete all .o files in source directory This will work better if files are rearranged in the future. This appears to be POSIX-compliant, so why wasn't it used earlier? --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d95b6013..1f49a5c5 100644 --- a/Makefile +++ b/Makefile @@ -135,13 +135,13 @@ rgbgfx: ${rgbgfx_obj} # for the html documentation. clean: - $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} rgbasm rgbasm.exe + $Q${RM} rgblink rgblink.exe + $Q${RM} rgbfix rgbfix.exe + $Q${RM} rgbgfx rgbgfx.exe + $Qfind src/ -name "*.o" -exec rm {} \; $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