Skip to contentSkip to conversation

tools: remove some .o and binary files on clean

PATCH In review Ian Campbell 3 participants 3 messages Mar 23, 2011 – Apr 1, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools: remove some .o and binary files on clean

# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1300898687 0
# Node ID d7d3aabffa1b70955ba347cfbe3869b9461374ee # Parent 185126e8a8137b273b2d65c368f0836d8c6e461d
tools: remove some .o and binary files on clean

tools/xenmon/Makefile +3 -1
diff -r 185126e8a813 -r d7d3aabffa1b tools/xenmon/Makefile
@@ -36,7 +36,9 @@ install: build
 
 .PHONY: clean
 clean:
-	rm -f  $(DEPS)
+	$(RM) -f $(DEPS)
+	$(RM) -f xenbaked xenbaked.o
+	$(RM) -f xentrace_setmake setmask.o
 
 xenbaked: xenbaked.o Makefile
 	$(CC) $(LDFLAGS) $< -o $@ $(LDLIBS)
tools/xenpmd/Makefile +1 -1
diff -r 185126e8a813 -r d7d3aabffa1b tools/xenpmd/Makefile
@@ -16,7 +16,7 @@ install: all
 
 .PHONY: clean
 clean:
-	$(RM) -f xenpmd $(DEPS)
+	$(RM) -f xenpmd xenpmd.o $(DEPS)
 
 xenpmd: xenpmd.o Makefile
 	$(CC) $(LDFLAGS) $< -o $@ $(LDLIBS)
#1 lore raw

Ian Campbell writes ("[Xen-devel] [PATCH] tools: remove some .o and binary files on clean"):

tools/xenmon/Makefile install: build · line 43

Quoted 13 lines

diff -r 185126e8a813 -r d7d3aabffa1b tools/xenmon/Makefile

tools/xenmon/Makefile +3 -1
@@ -36,7 +36,9 @@ install: build
 
 .PHONY: clean
 clean:
-	rm -f  $(DEPS)
+	$(RM) -f $(DEPS)
+	$(RM) -f xenbaked xenbaked.o
+	$(RM) -f xentrace_setmake setmask.o
 
 xenbaked: xenbaked.o Makefile

This patch is against something subtly different to xen-unstable.hg.

xen-unstable.hg contains this:

| clean:
|         rm -f $(BIN) $(DEPS)
|
|
| %: %.c Makefile

Differences include: presence of $(BIN) rather than two consecutive spaces, and one or two blank lines.

Ian.

#2 lore raw
Quoted 19 lines · Ian Jackson

Ian Campbell writes ("[Xen-devel] [PATCH] tools: remove some .o and binary files on clean"):

tools/xenmon/Makefile install: build · line 43

Quoted 13 lines

diff -r 185126e8a813 -r d7d3aabffa1b tools/xenmon/Makefile

tools/xenmon/Makefile +3 -1
@@ -36,7 +36,9 @@ install: build
 
 .PHONY: clean
 clean:
-	rm -f  $(DEPS)
+	$(RM) -f $(DEPS)
+	$(RM) -f xenbaked xenbaked.o
+	$(RM) -f xentrace_setmake setmask.o
 
 xenbaked: xenbaked.o Makefile

This patch is against something subtly different to xen-unstable.hg.

xen-unstable.hg contains this:

Quoted 8 lines
| clean:
|         rm -f $(BIN) $(DEPS)
|
|
| %: %.c Makefile

Differences include: presence of $(BIN) rather than two consecutive spaces, and one or two blank lines.

It depends on "tools: remove pattern matched linking rules", which you've now applied I think. I guess this patch should have been part of that little series, sorry for that.

Ian.