File: rules

package info (click to toggle)
gnome-chemistry-utils 0.14.17-1.1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 18,124 kB
  • sloc: cpp: 77,472; xml: 6,360; sh: 4,266; makefile: 1,578; ansic: 1,061
file content (47 lines) | stat: -rwxr-xr-x 1,064 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
42
43
44
45
46
47
#!/usr/bin/make -f
# -*- makefile -*-

#export DH_VERBOSE=1

DEB_VENDOR := $(shell dpkg-vendor --query vendor)

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

LDFLAGS += -Wl,--as-needed

%:
	dh $@ --parallel

override_dh_auto_configure: configure
	dh_auto_configure -- \
	    --libexecdir=\$${libdir}/gchemutils \
	    --disable-mozilla-plugin \
	    --without-kde-mime-dir \
	    --disable-update-databases \
	    --disable-scrollkeeper \
	    CPPFLAGS="$(CPPFLAGS)" \
	    CFLAGS="$(CFLAGS)" \
	    CXXFLAGS="$(CXXFLAGS)" \
	    LDFLAGS="$(LDFLAGS)"

override_dh_auto_install:
	dh_auto_install
	mv $(CURDIR)/debian/tmp/usr/share/appdata \
	   $(CURDIR)/debian/tmp/usr/share/metainfo

override_dh_auto_test:
	dh_auto_test || true

override_dh_clean:
	dh_clean po/*.gmo po/.intltool-merge-cache build-stamp

override_dh_install:
	dh_install --list-missing -X.la

override_dh_installchangelogs:
	dh_installchangelogs NEWS

override_dh_strip:
	dh_strip --dbgsym-migration='libgcu-dbg (<< 0.14.14~)'