Deleted Added
1#!/usr/bin/make
2
3include ../../version
4
5DEFAULT_RELEASE := 1
6
7VERSION ?= $(NXT_VERSION)
8RELEASE ?= $(DEFAULT_RELEASE)

--- 181 unchanged lines hidden (view full) ---

190 cat ../../build/unit.deb-changelog | sed \
191 -e "s#%%CODENAME%%#$(CODENAME)#g" \
192 > debuild/$(SRCDIR)/debian/changelog
193endif
194
195debuild/unit_$(VERSION).orig.tar.gz: | debuild/$(SRCDIR)/debian
196 cd ../.. && tar -czf pkg/deb/debuild/$(SRCDIR).tar.gz \
197 --transform "s#^#$(SRCDIR)/#" \
198 LICENSE NOTICE CHANGES README configure auto src test version go
199 mv debuild/$(SRCDIR).tar.gz debuild/unit_$(VERSION).orig.tar.gz
200 cd debuild && tar zxf unit_$(VERSION).orig.tar.gz
201
202unit: check-build-depends-unit debuild/unit_$(VERSION).orig.tar.gz debuild/$(SRCDIR)/debian/changelog
203 @echo "===> Building $@ package"
204 cd debuild/$(SRCDIR) && debuild -us -uc
205 mkdir -p debs
206 find debuild/ -maxdepth 1 -type f -exec cp {} debs/ \;

--- 104 unchanged lines hidden ---