Skip to contentSkip to conversation

Makefile: remove pkg-stats data on clean

PATCH New Yann E. MORIN 2 participants 3 messages May 18, 2021 Kbuild

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Makefile: remove pkg-stats data on clean

Like commit 1f187371d002 for cpe-updates data, also remove pkg-stats data on clean.

Unlike the rest, those are not nicely located in a directory of their own, and have no variable name associated with them, so we just need to repeat their names in the clean rule.

Cc Thomas Petazzoni <[email protected]>
Cc Matthew Weber <[email protected]>
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index c3305f46e9..9d2c0d8ecb 100644
@@ -1089,7 +1089,8 @@ printvars:
 clean:
 	rm -rf $(BASE_TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) $(HOST_DIR_SYMLINK) \
 		$(BUILD_DIR) $(BASE_DIR)/staging \
-		$(LEGAL_INFO_DIR) $(GRAPHS_DIR) $(PER_PACKAGE_DIR) $(CPE_UPDATES_DIR)
+		$(LEGAL_INFO_DIR) $(GRAPHS_DIR) $(PER_PACKAGE_DIR) $(CPE_UPDATES_DIR) \
+		$(O)/pkg-stats.*
 
 .PHONY: distclean
 distclean: clean
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 Makefile: remove pkg-stats data on clean

Quoted 10 lines · On Tue, 18 May 2021 22:28:17 +0200 "Yann E. MORIN" <[email protected]>…

Like commit 1f187371d002 for cpe-updates data, also remove pkg-stats data on clean.

Unlike the rest, those are not nicely located in a directory of their own, and have no variable name associated with them, so we just need to repeat their names in the clean rule.

Cc Thomas Petazzoni <[email protected]>
Cc Matthew Weber <[email protected]>

Thomas

Signature · 3 lines
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
author Applied
#2 lore raw

PATCH 1/1 Makefile: remove pkg-stats data on clean

In reply to Yann E. MORIN

All,

On 2021-05-18 22:28 +0200, Yann E. MORIN spake thusly:

Quoted 10 lines

Like commit 1f187371d002 for cpe-updates data, also remove pkg-stats data on clean.

Unlike the rest, those are not nicely located in a directory of their own, and have no variable name associated with them, so we just need to repeat their names in the clean rule.

Cc Thomas Petazzoni <[email protected]>
Cc Matthew Weber <[email protected]>

Applied to master, thanks.

Regards,
Yann E. MORIN.

Quoted 21 lines
---
 Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
Makefile +2 -1
index c3305f46e9..9d2c0d8ecb 100644
@@ -1089,7 +1089,8 @@ printvars:
 clean:
 	rm -rf $(BASE_TARGET_DIR) $(BINARIES_DIR) $(HOST_DIR) $(HOST_DIR_SYMLINK) \
 		$(BUILD_DIR) $(BASE_DIR)/staging \
-		$(LEGAL_INFO_DIR) $(GRAPHS_DIR) $(PER_PACKAGE_DIR) $(CPE_UPDATES_DIR)
+		$(LEGAL_INFO_DIR) $(GRAPHS_DIR) $(PER_PACKAGE_DIR) $(CPE_UPDATES_DIR) \
+		$(O)/pkg-stats.*
 
 .PHONY: distclean
 distclean: clean
Signature · 1 line
2.25.1
Signature · 6 lines
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'