File: rules

package info (click to toggle)
virt-viewer 1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,100 kB
  • ctags: 1,553
  • sloc: ansic: 11,551; sh: 11,387; xml: 452; makefile: 330
file content (22 lines) | stat: -rwxr-xr-x 544 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
#!/usr/bin/make -f

DEB_CONFIGURE_EXTRA_FLAGS := --disable-update-mimedb --with-gtk=3.0
ifneq (,$(findstring $(DEB_HOST_ARCH), i386 amd64))
    DEB_CONFIGURE_EXTRA_FLAGS += --with-spice-gtk
    HAVE_SPICE := 1
endif

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- $(DEB_CONFIGURE_EXTRA_FLAGS)

override_dh_auto_clean:
	[ ! -f Makefile ] || dh_auto_clean

override_dh_auto_install:
	dh_auto_install
	[ ! "${HAVE_SPICE}" ] || install -m0755 \
               data/spice-xpi-client-remote-viewer \
	       debian/virt-viewer/usr/bin/