#!/usr/bin/make -f package=remembrance-agent build: dh_testdir ./configure --mandir='$${prefix}/share/man' --prefix='/usr' \ --with-lispdir='/usr/share/emacs/site-lisp' make touch build clean: dh_testdir -rm -f build [ ! -f Makefile ] || make distclean -rm -f config.cache config.log config.status -rm -rf *~ debian/${package} debian/*~ debian/files* debconf-updatepo dh_clean install: build dh_testdir dh_testroot dh_clean -k dh_installdirs make install DESTDIR=`pwd`/debian/${package} -rm -rf debian/${package}/usr/lib # What happended to savantrc and vector.doc in the other/ subdir # in the 2.x releases? # install -m 644 REVISION-HISTORY debian/${package}/usr/share/doc/$(package)/changelog # install -m 644 other/savantrc debian/${package}/etc/savantrc install -m 644 debian/${package}.el \ debian/${package}/etc/emacs/site-start.d/50${package}.el # Move program files: # main/ra-index main/ra-retrieve other/remem-display-mode.el other/remem-display-mode.elc binary-indep: checkroot install dh_testdir # There are no architecture-independent files to be uploaded # generated by this package. If there were any they would be # made here. binary-arch: checkroot install dh_testdir dh_testroot dh_installdebconf dh_installdocs dh_installmenu dh_installchangelogs dh_installman other/ra-index.1 other/ra-retrieve.1 # No longer useful, should write a manpage # dh_undocumented ra-merge.1 dh_installdeb dh_strip dh_compress dh_fixperms dh_shlibdeps dh_gencontrol dh_md5sums dh_builddeb define checkdir test -f debian/rules endef # Below here is fairly generic really binary: binary-indep binary-arch source diff: @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false checkroot: $(checkdir) test root = "`whoami`" .PHONY: build clean binary binary-arch binary-indep clean checkroot install #Local variables: #mode: makefile #End: