]> oss.titaniummirror.com Git - cp210x.git/blobdiff - Makefile
Fix linux-header dependencies
[cp210x.git] / Makefile
index 5ffcc6c4819f24ecf9bdab34d9479fffa273cabc..cb03d6b3702c45f5fb83850c6da45e8bbe1d4a79 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,9 +4,9 @@
 
 # Change or override these values as necessary for each package release
 
-PKGVER  = 0.11
+PKGVER  = 0.11.1
 DEBDIST = hardy
-DEBRELEASE = 0tmi
+DEBRELEASE = 3tmi
 
 
 # No need to change anything below this line
@@ -45,12 +45,14 @@ $(DEBFILE): $(BUILD)/debian-stamp
        cd $(BUILD)/$(DEBSRC) && dpkg-buildpackage -sa -us -uc 
 
 
-$(BUILD)/src-stamp: $(wildcard src/*) dkms.conf
+$(BUILD)/src-stamp: Makefile.dkms dkms.conf $(wildcard src/*)
        mkdir -p $(BUILD)
        rm -rf $(BUILD)/$(DEBSRC)
        cp -a src $(BUILD)/$(DEBSRC)
-       cp -a dkms.conf $(BUILD)/$(DEBSRC)
-       perl -i -pe 's/xxDEBVERxx/$(DEBVER)/g' $(BUILD)/$(DEBSRC)/dkms.conf
+       perl -i -pe 's/xxPKGVERxx/$(PKGVER)/g' $(BUILD)/$(DEBSRC)/cp210x.c
+       cp Makefile.dkms $(BUILD)/$(DEBSRC)
+       cp dkms.conf $(BUILD)/$(DEBSRC)
+       perl -i -pe 's/xxPKGVERxx/$(PKGVER)/g' $(BUILD)/$(DEBSRC)/dkms.conf
        find $(BUILD)/$(DEBSRC) -name .svn -type d -exec rm -rf "{}" ";" 2>/dev/null || exit 0
        rm -rf $(BUILD)/$(DEBSRC)/.git || exit 0
        tar -C $(BUILD) -czf $(BUILD)/$(TARFILE) $(DEBSRC)