File: rules

package info (click to toggle)
guessnet 0.56
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 1,064 kB
  • ctags: 863
  • sloc: cpp: 5,355; sh: 1,432; makefile: 168; perl: 118
file content (28 lines) | stat: -rwxr-xr-x 819 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/make -f

VERSION=$(shell debian/vercheck)

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

#DEB_MAKE_CHECK_TARGET := check

# Store build information
common-binary-post-install-arch common-binary-post-install-indep::
	dh_buildinfo

vercheck:
	debian/vercheck > /dev/null

debsrc: vercheck
	test -z "`git diff --cached`" || (echo "There are uncommitted changes in the index" >&2; /bin/false)
	test -e Makefile || ./configure
	make dist
	fakeroot debian/rules clean
	rm -rf buildpkg
	mkdir buildpkg
	mv guessnet-$(VERSION).tar.gz buildpkg/guessnet_$(VERSION).orig.tar.gz
	cd buildpkg && tar zxf guessnet_$(VERSION).orig.tar.gz
	cp -a debian buildpkg/guessnet-$(VERSION)/
	cd buildpkg/guessnet-$(VERSION) && debuild -S -us -uc -I.git -i.git
	rm -f buildpkg/*_source.*