#!/usr/bin/make -f

%:
	dh ${@}

override_dh_auto_build:
	dh_auto_build -- OPTS="$(CFLAGS) $(LDFLAGS) $(CPPFLAGS) -std=gnu89 -pedantic -lm -Wall -ggdb" INC="-I../include" LIB="-L/usr/lib"

override_dh_auto_install:
	dh_auto_install -- PREFIX=$(CURDIR)/debian/reglookup/usr MAN_PREFIX=\$${PREFIX}/share/man

	rm -rf debian/reglookup/usr/share/man
	mv debian/reglookup/usr/share/doc/reglookup/man debian/reglookup/usr/share/man
