summaryrefslogtreecommitdiff
path: root/debian/rules
blob: a555b2fec3e584b7dd10447aab923967d0390290 (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
#!/usr/bin/make -f
# -*- makefile -*-

# Ensure texlive respects SOURCE_DATE_EPOCH
export FORCE_SOURCE_DATE=1

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif


%:
	dh $@

override_dh_auto_install:
	dh_auto_install -- DESTDIR=/usr PREFIX=$(CURDIR)/debian/minlog

override_dh_installman:
	dh_installman debian/minlog.1

override_dh_compress:
	dh_compress -Xminlog/examples -X.pdf

override_dh_auto_test:
	dh_auto_test || echo 'WARNING: Test suite failures'