#
$(PKGNAME)_$(VERSION)-1_$(ARCH).deb: $(PKGNAME)-$(VERSION)/debian/changelog
- cd $(PKGNAME)-$(VERSION)
- debuild
+ cd $(PKGNAME)-$(VERSION); debuild
#
# This rule creates unpacked Debian source by copiing debian
# subdirectory from this git module into unpacked distribution-agnostic
# $(PKGNAME)-$(VERSION) if you want you changes survive invocation of
# this rule
#
-$(PKGNAME)_$(VERSION)/debian/changelog: $(PKGNAME)_$(VERSION).orig.tar.bz2 $(wildcard debian/*)
- rm -f $(PKGNAME)-$(VERSION)
+$(PKGNAME)-$(VERSION)/debian/changelog: $(PKGNAME)_$(VERSION).orig.tar.bz2 $(wildcard debian/*)
+ rm -rf $(PKGNAME)-$(VERSION)
tar xf $(PKGNAME)_$(VERSION).orig.tar.bz2
cp -r debian $(PKGNAME)-$(VERSION)/debian
cd $(PKGNAME)-$(VERSION); dch -v $(VERSION)-1 "Build for $(ARCH)"