From: Chris Bagwell <ch...@cnpbagwell.com>

Make use of Kbuild's clean since it knows bests what
to clean up.

Add a distclean target since we are confusing automake
with kbuild tricks and it wasn't working before.

Signed-off-by: Chris Bagwell <ch...@cnpbagwell.com>
---
 2.6.30/Makefile.in |    8 +++++---
 2.6.36/Makefile.in |    9 +++++----
 2 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/2.6.30/Makefile.in b/2.6.30/Makefile.in
index 7959e48..dc510c2 100644
--- a/2.6.30/Makefile.in
+++ b/2.6.30/Makefile.in
@@ -18,15 +18,17 @@ PWD  := $(shell pwd)
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
 
 all:
-       @echo '    Building linuxwacom drivers for 2.6 kernel.'
+       @echo '    Building input-wacom drivers for 2.6 kernel.'
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD)
 
+clean:
+       $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) clean
+
 endif  # End kbuild check
 
 ######################### Version independent targets 
##########################
 
-clean:
-       rm -rf *.o *.ko *.mod.* .[a-z]* core *.i
+distclean: clean
 
 EMPTY_AUTOMAKE_TARGETS = distdir install install-data install-exec uninstall 
install-info
 EMPTY_AUTOMAKE_TARGETS += installdirs check dvi pdf ps info html tags ctags 
mostlyclean distclean maintainer-clean
diff --git a/2.6.36/Makefile.in b/2.6.36/Makefile.in
index 1b2be5b..dc510c2 100644
--- a/2.6.36/Makefile.in
+++ b/2.6.36/Makefile.in
@@ -16,18 +16,19 @@ else  # We were called from command line
 PWD  := $(shell pwd)
 
 WCM_KERNEL_DIR := @WCM_KERNEL_DIR@
-WCM_OPTION_WACOM := @WCM_OPTION_WACOM@
 
 all:
-       @echo '    Building linuxwacom drivers for 2.6 kernel.'
+       @echo '    Building input-wacom drivers for 2.6 kernel.'
        $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD)
 
+clean:
+       $(MAKE) -C $(WCM_KERNEL_DIR) M=$(PWD) clean
+
 endif  # End kbuild check
 
 ######################### Version independent targets 
##########################
 
-clean:
-       rm -rf *.o *.ko *.mod.* .[a-z]* core *.i
+distclean: clean
 
 EMPTY_AUTOMAKE_TARGETS = distdir install install-data install-exec uninstall 
install-info
 EMPTY_AUTOMAKE_TARGETS += installdirs check dvi pdf ps info html tags ctags 
mostlyclean distclean maintainer-clean
-- 
1.7.7.3


------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
Linuxwacom-devel mailing list
Linuxwacom-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel

Reply via email to