File: rules

package info (click to toggle)
medit 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 14,704 kB
  • ctags: 17,281
  • sloc: ansic: 147,773; sh: 11,614; python: 9,504; cpp: 6,957; xml: 2,527; makefile: 410; perl: 71
file content (33 lines) | stat: -rwxr-xr-x 955 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
#!/usr/bin/make -f

export DH_VERBOSE=1
export DH_OPTIONS=-v

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS) $(CPPFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS) $(CPPFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

LDFLAGS += -Wl,-z,defs,--as-needed

DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

%:
	dh $@ --parallel --with autoreconf,python2 

override_dh_auto_configure:
	dh_auto_configure -- --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) \
	--prefix=/usr CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)"

clean:
	dh $@ --with autoreconf
	find $(CURDIR) -name '*.pyc' -type f -print0 | xargs -0 rm -f

override_dh_auto_install:
	dh_auto_install
	chmod 755 debian/medit/usr/share/medit/language-specs/check.sh
	find $(CURDIR)/debian/medit/ -type d -empty -delete

override_dh_auto_test: