[flashrom] [PATCH] Add flashrom.exe to make clean

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Sun May 30 02:45:37 CEST 2010


make clean only removed files named *.o and flashrom although the
generated binary may have a filename extension like .exe .
Add flashrom.exe unconditionally to the list of files removed at make
clean. This allows users to run make clean without specifying the target
architecture.

Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006 at gmx.net>

Index: flashrom-make_clean_dos/Makefile
===================================================================
--- flashrom-make_clean_dos/Makefile	(Revision 1017)
+++ flashrom-make_clean_dos/Makefile	(Arbeitskopie)
@@ -255,8 +255,10 @@
 %.o: %.c .features
 	$(CC) $(CFLAGS) $(CPPFLAGS) $(FEATURE_CFLAGS) $(SVNDEF) -o $@ -c $<
 
+# Make sure to add all names of generated binaries here.
+# This includes all frontends and libflashrom.
 clean:
-	rm -f $(PROGRAM) *.o
+	rm -f $(PROGRAM) $(PROGRAM).exe *.o
 
 distclean: clean
 	rm -f .dependencies .features .libdeps


-- 
http://www.hailfinger.org/





More information about the flashrom mailing list