rules 810 Bytes
Newer Older
1 2
#!/usr/bin/make -f

3 4 5 6 7 8 9 10 11 12 13
## inspired from gsl material
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else ifeq ($(DEB_HOST_ARCH), m68k)
	CFLAGS += -O2
else ifeq ($(DEB_HOST_ARCH), alpha)
	CFLAGS += -O2 -mieee
else
	CFLAGS += -O3
endif

14 15
export ACLOCAL_PATH=/usr/share/gnulib/m4

16 17 18 19 20 21
default:
	@uscan --no-conf --dehs --report || true

%:
	dh $@ --with autoreconf

22 23 24 25 26
override_dh_auto_build-indep:
	$(MAKE) -C docs doc

override_dh_auto_test-indep:

27 28 29
override_dh_auto_configure:
	dh_auto_configure -- --enable-maintainer-mode

30 31 32 33 34
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) -C tests check || cat tests/test-suite.log
endif

35
override_dh_strip:
36
	dh_strip --dbg-package=libapophenia1-dbg
37 38

get-orig-source:
39
	uscan --no-conf --download-current-version --compression xz --verbose