#!/usr/bin/make -f

PACKAGE = ttyload
MANSECT = 1

CFLAGS_EXTRA = -Wall --pedantic $(CFLAGS)

man:
	# target: man -- convert *.pod to manual page
	$(MAKE) -C debian -f pod2man.mk PACKAGE=$(PACKAGE) \
	MANSECT=$(MANSECT) makeman

override_dh_auto_install:
	# DESTDIR isn't used in makefile. Use debain/install

override_dh_auto_build: man
	# Use DEBUG variable to pass more flags to compiling
	$(MAKE) DEBUG="$(CFLAGS_EXTRA)"

override_dh_auto_test:
	# Empty rule to prevent starting a TTY program. There are no
	# automatic tests.
%:
	dh $@

.PHONY: man

# End of file
