]> oss.titaniummirror.com Git - cp210x.git/blobdiff - Makefile.dkms
Style cleanups
[cp210x.git] / Makefile.dkms
index 6488d65f6e0080d9d690c349b77271a374452ff8..b8de4d42c6a79fdb7d04e8efc846b8a0fb18f2c5 100755 (executable)
@@ -3,16 +3,14 @@
 STRIP  = strip --strip-unneeded --remove-section=.comment --remove-section=.note
 
 all:
-       -rm -rf builddir
-       cp -a src builddir
-       cd builddir && ./configure -kver $(KVER)
-       test -f builddir/Makefile.go
-       $(MAKE) -C builddir -f Makefile.go
-       cp builddir/cp2101.ko cp210x.ko
+       ./configure -kver $(KVER)
+       test -f Makefile.config
+       $(MAKE) -f Makefile.go
        $(STRIP) cp210x.ko
 
 clean:
-       -rm -rf builddir cp210x.ko
+       test -f Makefile.config && $(MAKE) -f Makefile.go distclean || exit 0
+       -rm -rf cp210x.ko
 
 
 .PHONY: all clean