File: rules

package info (click to toggle)
gtk-d 3.9.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 20,104 kB
  • sloc: javascript: 565; sh: 71; makefile: 21
file content (35 lines) | stat: -rwxr-xr-x 740 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
#!/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)

# 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 \
		prefix=/usr

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

override_dh_missing:
	dh_missing --fail-missing

override_dh_makeshlibs:
	dh_makeshlibs -V