File: rules

package info (click to toggle)
fbpanel 7.0-4
  • links: PTS
  • area: main
  • in suites: buster, sid
  • size: 5,040 kB
  • sloc: ansic: 11,684; sh: 404; python: 382; makefile: 315
file content (35 lines) | stat: -rwxr-xr-x 994 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
29
30
31
32
33
34
35
#!/usr/bin/make -f
# -*- makefile -*-
#
#  # Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
CFLAGS=$(shell dpkg-buildflags --get CFLAGS)
LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)
LDFLAGS+="-z bindnow"

%:
	dh $@ 

override_dh_auto_configure:
	./configure --prefix=/usr \
		--infodir=/usr/share/info \
		--libexecdir=/usr/lib/fbpanel/fbpanel \
		--mandir=/usr/share/man/man1 \
		--sysconfdir=/etc/fbpanel CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}"

override_dh_auto_clean:
	make -j1 distclean || true

override_dh_fixperms:
	chmod a-x $(CURDIR)/debian/fbpanel/usr/share/fbpanel/images/default.xpm
	dh_fixperms

DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
get-orig-source:
	uscan --force-download --rename --repack\
	--download-version=$(DEB_UPSTREAM_VERSION) --destdir=.

override_dh_install:
	dh_install debian/terminal_color.svg usr/share/fbpanel/images 
	dh_install debian/terminal_sketch.svg usr/share/fbpanel/images
	dh_install