File: rules

package info (click to toggle)
blackbox 0.70.1-13
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,248 kB
  • sloc: cpp: 17,587; sh: 8,764; makefile: 1,051; awk: 25
file content (40 lines) | stat: -rwxr-xr-x 1,109 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
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f

DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
buildflags ?= $(shell dpkg-buildflags --export=configure)

confflags := \
        --host=$(DEB_HOST_GNU_TYPE) \
        --build=$(DEB_BUILD_GNU_TYPE) \
        --prefix=/usr \
        --libdir=/usr/lib/$(DEB_HOST_MULTIARCH) \
        --mandir=\$${prefix}/share/man \
        --infodir=\$${prefix}/share/info \
        --sysconfdir=/etc/X11/blackbox \
        --enable-shared \
	$(NULL)

%:
	dh $@

override_dh_auto_configure:
	autoreconf -vfi
	$(buildflags) dh_auto_configure -- $(confflags)

override_dh_auto_build:
	$(MAKE) DEFAULT_MENU=/etc/X11/blackbox/blackbox-menu

override_dh_auto_clean:
	[ ! -f Makefile ] || $(MAKE) distclean
	cp -f /usr/share/misc/config.sub config.sub
	cp -f /usr/share/misc/config.guess config.guess

override_dh_install:
	dh_install
	rm -f $(CURDIR)/debian/blackbox/usr/share/blackbox/menu

override_dh_link:
	rm -rf $(CURDIR)/debian/libbt/usr/share/doc/libbt
	dh_link -plibbt usr/share/doc/libbt0 usr/share/doc/libbt
	dh_link