File: rules

package info (click to toggle)
qpxtool 0.7.2-4.1
  • links: PTS, VCS
  • area: main
  • in suites: buster, stretch
  • size: 2,996 kB
  • ctags: 5,318
  • sloc: cpp: 35,356; sh: 786; makefile: 321; sql: 87
file content (19 lines) | stat: -rwxr-xr-x 601 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

PACKAGE = qpxtool

DEBIAN_PATH := $(abspath $(dir $(MAKEFILE_LIST)))
USCAN_REPORT = $(shell uscan --noconf --report --dehs $(DEBIAN_PATH))
CUR_VER = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-version>\(.*\)<\/upstream-version>.*/\1/p')
CUR_URL = $(shell echo "$(USCAN_REPORT)" | sed -n 's/.*<upstream-url>\(.*\)<\/upstream-url>.*/\1/p')

LDFLAGS += -Wl,--as-needed

%:
	dh $@ --list-missing

override_dh_auto_configure:
	./configure --prefix=/usr --libdir=/usr/lib --mandir=/usr/share/man

get-orig-source:
	wget -c "$(CUR_URL)" -O "$(PACKAGE)_$(CUR_VER).orig.tar.bz2"