#!/usr/bin/make -f # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export CFLAGS := -O2 -Wall -DNCURSES ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) CFLAGS += -g endif build: build-stamp build-stamp: dh_testdir PRNTCMD=lpr ./configure --prefix=/usr \ --libdir='$${prefix}/share' \ --mandir='$${prefix}/share/man' $(MAKE) > $@ touch build-stamp clean: myclean myclean: dh_testdir dh_testroot dh_clean build-stamp install-stamp [ ! -f Makefile ] || $(MAKE) clean distclean install: install-stamp install-stamp: build dh_testdir dh_testroot dh_clean $(MAKE) install prefix=`pwd`/debian/xwpe/usr > $@ touch install-stamp binary-indep: build install # We have nothing to do by default. binary-arch: build install dh_testdir dh_testroot dh_installdocs README dh_installmenu dh_installchangelogs CHANGELOG dh_strip dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary myclean