1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
|
#!/usr/bin/make -f
# rules file for tdtd
#
# TODO:
# supported-emacsen := "..."
# -> subst that into postinst, postrm, control, emacsen-{install,remove}
package := tdtd
# directory abstraction
prefix := debian/tmp
lispdir := $(prefix)/usr/share/emacs/site-lisp/$(package)
# tool abstraction
install_file := install -o root -g root -m 644 -p
install_script := install -o root -g root -m 755 -p
make_directory := install -d -o root -g root -m 755
compress := gzip -9f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
build:
# nothing to be done
clean:
$(checkdir)
rm -f `find . -name "*~"`
rm -rf $(prefix)
rm -f debian/files* debian/substvars
dh_clean
binary-indep: build
$(checkdir)
$(checkroot)
dh_clean
$(make_directory) $(lispdir)
# elisp
$(install_file) *.el $(lispdir)
# file to help compile
$(install_file) debian/_tdtd-compile.el $(lispdir)
# site start
$(install_file) dot_emacs $(lispdir)/_tdtd-init.el
cat debian/init-add.el >> $(lispdir)/_tdtd-init.el
# documentation
dh_installdocs readme.txt tutorial.txt TODO \
debian/README.Debian debian/copyright
dh_installchangelogs changelog.txt
dh_installemacsen
dh_compress
dh_installdeb
dpkg-gencontrol -isp
dh_md5sums
dh_builddeb
binary-arch: build
# nothing to be done
define checkdir
test -f debian/rules
test -f tdtd.el
endef
# Below here is fairly generic really
define checkroot
test `id -u` = 0
endef
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
#Local variables:
#mode: makefile
#End:
|