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 85 86 87 88 89 90 91 92 93 94 95 96 97 98
|
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself. (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
# This file may have to be extensively modified
#
# Modified for tm by Joe Reinhardt
# Updated to use debhelper and to emacs-policy compliance by Yann Dirson
# There used to be `source' and `diff' targets in this file, and many
# packages also had `changes' and `dist' targets. These functions
# have been taken over by dpkg-source, dpkg-genchanges and
# dpkg-buildpackage in a package-independent way, and so these targets
# are obsolete.
package=tm
topdir=$(shell pwd)
debdir=$(topdir)/debian
tmpdir=$(debdir)/tmp
export LC_ALL=C
build: build-stamp
build-stamp:
dh_testdir
$(MAKE) -C tm execs mime-setup.el CFLAGS="-g -O2"
touch build-stamp
clean:
dh_testdir
dh_testroot
-rm -f build-stamp
-(cd gnus-mime && make clean)
-(cd tm && make clean)
-(cd tm-gnus && make clean)
-(cd tm-mh-e && make clean)
-rm -rf debian/tmp.deb
dh_clean
binary-indep: build
binary-arch: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs
$(MAKE) -C tm install-execs
install -p -m 644 */*.el $(tmpdir)/usr/share/emacs/site-lisp/tm/
rm -f $(tmpdir)/usr/share/emacs/site-lisp/tm/tm-vm.el
cd $(tmpdir)/usr/share/emacs/site-lisp/ && mv tm/mime-setup.el .
# integrate with emacsen
for FLAVOR in emacs19 emacs20; do \
ln -s /usr/share/emacs/site-lisp/mime-setup.el \
$(tmpdir)/etc/$$FLAVOR/site-start.d/50mime-setup.el ;\
done
for i in install remove; do \
install -p -m 755 $(debdir)/emacs-$$i \
$(tmpdir)/usr/lib/emacsen-common/packages/$$i/$(package) ;\
done
# install -p -m 644 tm/TM-MK tm/TM-CFG */*-ELS
install -p -m 644 $(debdir)/*.lst $(debdir)/fix-compile.el \
$(tmpdir)/usr/share/emacs/site-lisp/tm/support
# this code only installs the English info pages. There are
# also Japanese info pages available in the source package.
install -p -m 644 tm/doc/tm*-en.info $(tmpdir)/usr/info
install -p -m 644 gnus-mime/gnus-mime-en.info $(tmpdir)/usr/info
install -p -m 644 tm-gnus/tm-gnus_en.info $(tmpdir)/usr/info
install -p -m 644 tm-mh-e/tm-mh-e-en.info $(tmpdir)/usr/info
install -p -m 644 tm-vm/tm-vm-en.info $(tmpdir)/usr/info
dh_installdocs
dh_undocumented
dh_installchangelogs tm/ChangeLog
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
# Below here is fairly generic really
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
|