#!/usr/bin/make -f pkg := vcs-tree debpkg := vcs-tree bin-dir := usr/bin build: build-stamp build-stamp: dh_testdir $(MAKE) _${pkg} touch build-stamp clean: dh_testdir dh_testroot rm -f build-stamp configure-stamp $(MAKE) clean rm -f debian/${debpkg}.postinst.* debian/${debpkg}.prerm.* dh_clean install: build dh_testdir dh_testroot dh_prep dh_installdirs $(bin-dir) dh_install $(pkg) $(bin-dir) dh_install _$(pkg) $(bin-dir) binary-indep: binary-arch: install dh_testdir dh_testroot dh_installdocs dh_installexamples dh_installman $(pkg).1 dh_link usr/share/man/man1/$(pkg).1 usr/share/man/man1/_$(pkg).1 dh_installchangelogs # don't strip sbcl binary or will remove vcs-tree code dh_strip -X_$(pkg) dh_compress dh_fixperms dh_installdeb dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb binary: binary-arch .PHONY: build clean binary-indep binary-arch binary install