#! /usr/bin/make -f
-export DH_COMPAT = 4
+DH_OPTIONS = --parallel -Bdebian/build
-build:
- rm -rf build deb-build
- mkdir deb-build
- cd deb-build; ../configure --prefix=/usr --infodir=/usr/share/info
- make -C deb-build
- touch build
+OVERRIDES += auto_configure
+dh_auto_configure_OPTS = --
+dh_auto_configure_OPTS += --with-imagedir=/var/lib/runlisp
-clean:
- dh_clean
- rm -rf deb-build build
+OVERRIDES += auto_install
+dh_auto_install_OPTS = --destdir=debian/tmp
-install: build
- dh_clean
- make -C deb-build install DESTDIR=`pwd`/debian/cfd
+%:; dh $@ $(DH_OPTIONS)
-binary-indep: install
- dh_testdir -i
- dh_testroot -i
- dh_installinfo -i common.info
- dh_compress -i
- dh_installdocs -i
- dh_gencontrol -i
- dh_fixperms -i
- dh_installdeb -i
- dh_md5sums -i
- dh_builddeb -i
-
-binary-arch:
-
-binary: binary-indep binary-arch
-
-source:
- rm -rf deb-build/*.tar.gz deb-build/=deb=
- make -C deb-build dist PACKAGE=cfd
- mkdir deb-build/=deb=
- cd deb-build/=deb=; tar xvfz ../*.tar.gz
- d=`pwd`; cd ..; dpkg-source -i -b $$d/deb-build/=deb=/*
- rm -rf deb-build/=deb=
-
-.PHONY: binary binary-arch binary-indep clean install source
+$(foreach o, $(sort $(OVERRIDES)), dh-$o-hook)::; @:
+$(foreach o, $(sort $(OVERRIDES)), override_dh_$o): override_dh_%: dh-%-hook
+ dh_$* $(addprefix -O, $(DH_OPTIONS)) $(dh_$*_OPTS)