File: rules

package info (click to toggle)
yatex 1.81-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 2,060 kB
  • sloc: lisp: 15,112; makefile: 203; ruby: 92; sh: 76
file content (53 lines) | stat: -rwxr-xr-x 1,625 bytes parent folder | download
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
#!/usr/bin/make -f

package=yatex
#PACKAGE = yatex

DEBIANTMP     = ${CURDIR}/debian/${package}
ELDIR   = ${DEBIANTMP}/usr/share/emacs/site-lisp/${package}
INFODIR = ${DEBIANTMP}/usr/share/info/
ETCDIR  = ${DEBIANTMP}/etc/emacs/site-start.d
DOC	= ${DEBIANTMP}/usr/share/doc/${package}

LISP    = yahtml.el yatexlib.el yatexprc.el yatexpkg.el yatex.el yatexadd.el yatexgen.el yatexenv.el \
	 yatexmth.el yatexhks.el yatexhlp.el yatexm-o.el yatexsec.el yatexhie.el yatex19.el yatex23.el \
	 yatexflt.el
HELP = help/YATEXHLP.jp help/YATEXHLP.eng
INFO    = yatexj.info yatexe.info yahtmlj.info yahtmle.info
INFOSRC	= docs/yatexj.tex docs/yatexe.tex docs/yahtmlj.tex docs/yahtmle.tex

INSTDATA        := install -m 644

%:
	dh $@ --with elpa

override_dh_auto_configure:
	cp -f yatex.new changelog
	mkdir -p debian/utf8/help debian/utf8/docs

override_dh_auto_build:
	for i in $(LISP) $(HELP) $(INFOSRC); do \
		nkf -d --utf8 $$i | sed -e 's/coding: sjis/coding: utf-8/' > debian/utf8/$$i; \
	done
	
	cd debian/utf8 && for f in $(INFOSRC); do \
		emacs -debug-init -batch -l ../../debian/install-tfb.el -e tfb-and-exit $$f; \
	done

override_dh_auto_install:
	cd debian/utf8 && $(INSTDATA) $(LISP) $(ELDIR)
	cd debian/utf8 && $(INSTDATA) $(HELP) $(ELDIR)
	cd debian/utf8/docs && $(INSTDATA) $(INFO) $(INFODIR)
	dh_installdocs debian/NEWS.Debian
	$(INSTDATA) debian/yatex-init.el $(ETCDIR)/50yatex-init.el

override_dh_installdocs:
	dh_installdocs
	cd ${DOC} && mv qanda htmlqa yatexadd.doc yatexgen.doc \
		yatex.ref README.debian.ja japanese/

override_dh_auto_clean:
	rm -f changelog
	rm -rf debian/utf8 debian/yatex
	dh_clean