File: rules

package info (click to toggle)
yatex 1.82-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 2,072 kB
  • sloc: lisp: 15,155; makefile: 194; ruby: 92; sh: 76
file content (42 lines) | stat: -rwxr-xr-x 1,068 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
#!/usr/bin/make -f

package=yatex

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

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 *.el 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:
	dh_installdocs debian/NEWS
	$(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