File: rules

package info (click to toggle)
yatex 1.76%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,628 kB
  • sloc: lisp: 13,481; makefile: 172; ruby: 92; sh: 66
file content (50 lines) | stat: -rwxr-xr-x 1,513 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
#!/usr/bin/make -f
include /usr/share/cdbs/1/rules/debhelper.mk

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 comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el \
	 yatexmth.el yatexhks.el yatexhlp.el yatexm-o.el yatexsec.el  yatexhie.el yatex19.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

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

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

build/yatex::
	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 \
		makeinfo $$f ; \
	done

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

binary-post-install/yatex::
	cd ${DOC} && mv qanda htmlqa yatexadd.doc yatexgen.doc \
		yatex.ref README.debian.ja ${DOC}/japanese