aboutsummaryrefslogtreecommitdiffhomepage
path: root/debian/rules
blob: 7d6302c8e68bcd8c24596e6ea9d2fb693b8f4177 (plain)
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

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# NOTE: Unsetting $TERM is necessary since the
# PPA build servers have a broken curses setup.
# They have $TERM set but do not include the corresponding
# terminal definitions.
# This lets SciTECO choose a reasonable default
# and we've also added some terminal definitions to the
# build dependencies.
export TERM=

# Build with link-time-optimizations
export DEB_CFLAGS_MAINT_APPEND=-flto
export DEB_CXXFLAGS_MAINT_APPEND=-flto
export DEB_LDFLAGS_MAINT_APPEND=-flto

%:
	dh $@

build:
	dh_testdir
	dh_auto_configure -- \
			  --enable-bootstrap \
			  --with-interface=ncurses \
	                  $(shell dpkg-buildflags --export=configure)
	dh_auto_build
	touch $@

clean:
	dh_testdir
	dh_auto_clean
	dh_clean