X-Git-Url: https://oss.titaniummirror.com/gitweb?p=cp210x.git;a=blobdiff_plain;f=Makefile.dkms;h=c84885b2887fa0cab4c0b1c83c187c853f1d6a92;hp=6488d65f6e0080d9d690c349b77271a374452ff8;hb=7ee25a350f8cb5a22dfcc46f9aba087d8ae23fe1;hpb=a30cb143fe071853bbe524a8eab49b2fcbb99d02 diff --git a/Makefile.dkms b/Makefile.dkms index 6488d65..c84885b 100755 --- a/Makefile.dkms +++ b/Makefile.dkms @@ -3,16 +3,15 @@ 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 + cp cp2101.ko cp210x.ko $(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