File: rules

package info (click to toggle)
gtk-d 3.8.5-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 19,704 kB
  • sloc: sh: 71; makefile: 27
file content (41 lines) | stat: -rwxr-xr-x 963 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
41
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1

# Define install target dir
INSTALLDIR = $(CURDIR)/debian/tmp

include /usr/share/dh-dlang/dlang-flags.mk
export DCFLAGS=${DFLAGS}
export DC=ldc2

# the GtkD Makefiles use raw LDFLAGS from the environment, so we transform them into a form LDC can understand
# this include will only do something if our D compiler is LDC
include /usr/share/dh-dlang/ldc-transform-ldflags.mk

%:
	dh $@ --with gnome

override_dh_auto_build:
	dh_auto_build -- \
		test \
		shared-gtkd \
		shared-sv \
		shared-gstreamer \
		shared-vte \
		prefix=/usr

override_dh_auto_install:
	dh_auto_build -- \
		install-shared-gtkd install-headers-gtkd \
		install-shared-gtkdsv install-headers-gtkdsv \
		install-shared-gstreamer install-headers-gstreamer \
		install-shared-vte install-headers-vte \
		DESTDIR=$(INSTALLDIR) \
		prefix=/usr

override_dh_missing:
	dh_missing --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -V