shithub: rgbds

Download patch

ref: 59023062712deb0becdb4af588afa242fdea76a0
parent: 2fe4521a966883f6d06f4df2170ff96f82c1f2c9
author: ISSOtm <[email protected]>
date: Sat Sep 7 08:14:56 EDT 2019

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.

--- a/Makefile
+++ b/Makefile
@@ -129,12 +129,13 @@
 # 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