#!/usr/bin/make -f CFLAGS = -Wall -g ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else CFLAGS += -O2 endif PREFIX = /usr/local DESTDIR = $(CURDIR)/debian/elm configure: configure-stamp configure-stamp: dh_testdir PREFIX=$(PREFIX) DESTDIR=$(DESTDIR) ./Configure touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir $(MAKE) touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp -$(MAKE) clean rm -f Make.defs Makefile config.h config.sh sysdefs.h doc/Makefile \ lib/Makefile src/Makefile utils/Makefile utils/checkalias \ utils/listalias utils/messages utils/printmail rm -rf bin dh_clean install: build dh_testdir dh_testroot dh_clean -k mkdir -p $(DESTDIR)$(PREFIX)/bin mkdir -p $(DESTDIR)$(PREFIX)/lib/elm mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 $(MAKE) install binary-indep: build install binary-arch: build install dh_testdir dh_testroot dh_strip dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure