From 0be83c09a066119f5fded3bd1344f90a0a98d52c Mon Sep 17 00:00:00 2001 From: Martin Roth Date: Wed, 21 Oct 2015 14:50:00 -0600 Subject: util: Update makefiles for junit testing - Have clean remove junit.xml files. - Remove junit.xml target from cbmem makefile - this is in the top level Makefile.inc now. - add distclean targets to makefiles. - Make sure all makefiles have .PHONY set up. - rm commands need -f or they will fail if the file they're trying to remove doesn't exist, causing the build to fail. Change-Id: I2f0635f2c0a9417e3377a90c8d67103323c4a72f Signed-off-by: Martin Roth Reviewed-on: http://review.coreboot.org/12120 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- util/ectool/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'util/ectool/Makefile') diff --git a/util/ectool/Makefile b/util/ectool/Makefile index 3ab0bc8638..6225503fda 100644 --- a/util/ectool/Makefile +++ b/util/ectool/Makefile @@ -38,7 +38,11 @@ install: $(PROGRAM) $(INSTALL) $(PROGRAM) $(PREFIX)/sbin clean: - rm *.o $(PROGRAM) + rm -f *.o $(PROGRAM) junit.xml + +distclean: clean %.o: %.c $(CC) $(CFLAGS) -c $^ -I. -o $@ + +.PHONY: all install clean distclean -- cgit v1.2.3