X-Git-Url: https://oss.titaniummirror.com/gitweb?a=blobdiff_plain;f=Makefile;h=0a6c30e4856fb96bf30de9d69c7535da44c709e2;hb=479b50ff8efa3ee1b8be228378a993cc6e8f3d4a;hp=5ffcc6c4819f24ecf9bdab34d9479fffa273cabc;hpb=a30cb143fe071853bbe524a8eab49b2fcbb99d02;p=cp210x.git diff --git a/Makefile b/Makefile index 5ffcc6c..0a6c30e 100644 --- a/Makefile +++ b/Makefile @@ -4,9 +4,8 @@ # Change or override these values as necessary for each package release -PKGVER = 0.11 -DEBDIST = hardy -DEBRELEASE = 0tmi +PKGVER = 0.11.2 +DEBRELEASE = 4tmi # No need to change anything below this line @@ -23,6 +22,7 @@ ifeq (,$(REPOID)) endif BUILD := build +DEBDIST := $(shell lsb_release -cs) DEBVER := $(PKGVER)-$(DEBRELEASE) RFC822DATE := $(shell date --rfc-822) ROOTNAME := cp210x @@ -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)