File: rules

package info (click to toggle)
libwibble 1.1-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 1,040 kB
  • ctags: 2,721
  • sloc: cpp: 14,542; makefile: 196; perl: 87; sh: 26
file content (27 lines) | stat: -rwxr-xr-x 824 bytes parent folder | download
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
#!/usr/bin/make -f

BUILDDIR = $(CURDIR)/debian/build

%:
	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR)

override_dh_fixperms:
	dh_fixperms
	test -e /usr/bin/dh_buildinfo && dh_buildinfo

override_dh_auto_build:
	dh_auto_build
	make -C $(BUILDDIR) unit
	make -C $(BUILDDIR) doc

override_dh_auto_install:
	dh_auto_install
	dh_installdocs -plibwibble-dev -n $(BUILDDIR)/doc/html

tarball:
	if darcs wh -l; then (echo "There are uncommitted changes or spurious files"; /bin/false); fi
	sh debian/check_versions
	VER=`grep '^set( *VERSION' CMakeLists.txt |sed -r 's/.+"([^"]+)".+/\1/'` && tar --transform "s/^./libwibble-$$VER/" --exclude=_darcs --exclude=debian -zcf ../libwibble-$$VER.tar.gz . && ln -f ../libwibble-$$VER.tar.gz ../libwibble_$$VER.orig.tar.gz

debsrc: tarball
	debuild -us -uc -S -i_darcs -I_darcs