ref: 0f4d543aebbfe37ecd2e19aefb00084798c5f89b
parent: dab5f59ed9b1aefddb035e6938df1440c7dec46f
author: ISSOtm <[email protected]>
date: Tue Sep 24 23:17:36 EDT 2019
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?
--- a/Makefile
+++ b/Makefile
@@ -135,13 +135,13 @@
# 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