File: rules

package info (click to toggle)
flim 1:1.14.9+0.20120428-21
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,984 kB
  • sloc: lisp: 10,293; sh: 142; makefile: 111
file content (77 lines) | stat: -rwxr-xr-x 1,779 bytes parent folder | download | duplicates (2)
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
#! /usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGE=flim
ELDIR=$(CURDIR)/debian/$(PACKAGE)/usr/share/$(PACKAGE)
EMACS=emacs

build-indep: build-indep-stamp
build-indep-stamp:
	dh_testdir

	for fbase in mime-en mime-ja; do \
	  if egrep '^@direntry' $$fbase.texi 2>&1 >/dev/null; then \
	    cp $$fbase.texi debian/$$fbase.texi; \
	  else \
	    perl -pe 's/^\@titlepage/\@dircategory Emacs\n\@direntry\n* '$$fbase' ('$(PACKAGE)'): ('$$fbase').  MIME library for Emacs.\n\@end direntry\n\n\@titlepage/' $$fbase.texi >debian/$$fbase.texi; \
	  fi; \
	  $(EMACS) -batch -q -no-site-file \
	    -eval '(set-language-environment "Japanese")' \
	    -eval "(prefer-coding-system 'iso-2022-jp)" \
	    -eval '(find-file "debian/'$$fbase'.texi")' \
	    -l texinfmt -f texinfo-every-node-update \
	    -f texinfo-format-buffer -f save-buffer; \
	  mv -f debian/$$fbase.info .; \
	done

	touch $@

build-arch:

build: build-indep build-arch

clean:
	dh_testdir
	dh_testroot
	rm -f *build*-stamp
	rm -f debian/*.texi debian/*.info *.info .\#* debian/.\#*

	dh_clean

install: build-indep
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs

	cp Makefile FLIM-* *.el $(ELDIR)/
	rm -f $(ELDIR)/FLIM-API*

# Do not install obsolete files
	for f in mailcap.el smtpmail.el; do \
	  if [ -f $(ELDIR)/$$f ]; then rm -f $(ELDIR)/$$f; fi; \
	done

binary-indep: install
	dh_testdir
	dh_testroot
#	dh_installdebconf
	dh_installdocs
#	dh_installexamples
	dh_installemacsen --priority 50
	dh_installinfo
	dh_installchangelogs ChangeLog
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:

binary: binary-indep binary-arch
.PHONY: build-indep build-arch build clean binary-indep binary-arch binary install