File: rules

package info (click to toggle)
sdrangelove 0.0.1.20150707-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 1,600 kB
  • sloc: cpp: 17,765; ansic: 142; makefile: 17; sh: 1
file content (26 lines) | stat: -rwxr-xr-x 832 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
#!/usr/bin/make -f
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
export DEB_HOST_MULTIARCH
DEB_DEBIAN_DIR=$(dir $(firstword $(MAKEFILE_LIST)))
VER=$(shell dpkg-parsechangelog -l$(DEB_DEBIAN_DIR)/changelog \
              | sed -rne 's,^Version: ([^-]+).*,\1,p')
GITREV=$(shell echo $(VER) | sed -rne 's,[0-9]+\.[0-9]+\.[0-9]+\.([0-9]+),\1,p')
#CC=gcc-6
#CXX=g++-6
#export CC
#export CXX

%:
	dh $@ --buildsystem=cmake

override_dh_install:
	dh_install
	cp debian/sdrangelove-wrapper debian/sdrangelove/usr/bin/sdrangelove

version-to-get:
	echo $(VER) is $(GITREV)

get-orig-source: version-to-get
	git clone git://git.osmocom.org/sdrangelove.git
	cd gr-osmosdr &&  git archive --format=tar --prefix=sdrangelove-0.0.1.20150707/ 64a1d97 | xz > ../../sdrangelove_0.0.1.20150707.orig.tar.xz
	rm -rf sdrangelove