Skip to contentSkip to conversation

kmod: Add distclean rule

PATCH Superseded Jan Kiszka 2 participants 4 messages May 15, 2009 – May 17, 2009

Subsystems (2)
lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 kmod: Add distclean rule

Remove the configure output config.kbuild and config.mak via distclean.

---

 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Makefile +3 -0
index dad5f0b..75aab71 100644
@@ -68,3 +68,6 @@ rpm:	all
 
 clean:
 	$(MAKE) -C $(KERNELDIR) M=`pwd` $@
+
+distclean:
+	rm -f config.kbuild config.mak
author
#1 lore raw

PATCH v2 1/1 kmod: Add distclean rule

Makefile rpm: all · line 73

Quoted 9 lines · Jan Kiszka
Makefile +3 -0
@@ -68,3 +68,6 @@ rpm:	all
 
 clean:
 	$(MAKE) -C $(KERNELDIR) M=`pwd` $@
+
+distclean:
+	rm -f config.kbuild config.mak

This one is "cleaner":

--------->

Remove the configure output config.kbuild and config.mak via distclean.

---

 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Makefile +3 -0
index dad5f0b..a4c59c9 100644
@@ -68,3 +68,6 @@ rpm:	all
 
 clean:
 	$(MAKE) -C $(KERNELDIR) M=`pwd` $@
+
+distclean: clean
+	rm -f config.kbuild config.mak
author
#2 lore raw

PATCH v3 1/1 kmod: Add distclean rule

The smaller the patch... sigh.

------------>

Remove the configure output config.kbuild, config.mak and arch links via distclean.

---

 Makefile |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Makefile +3 -0
index dad5f0b..cef121d 100644
@@ -68,3 +68,6 @@ rpm:	all
 
 clean:
 	$(MAKE) -C $(KERNELDIR) M=`pwd` $@
+
+distclean: clean
+	rm -f config.kbuild config.mak include/asm include-compat/asm
Applied
#3 lore raw
Quoted 7 lines · Jan Kiszka

The smaller the patch... sigh.

------------>

Remove the configure output config.kbuild, config.mak and arch links via distclean.

Applied, thanks.

Signature · 1 line
Do not meddle in the internals of kernels, for they are subtle and quick to panic.