File: rules

package info (click to toggle)
yatex 1.71-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 1,164 kB
  • ctags: 871
  • sloc: lisp: 11,222; makefile: 209; sh: 88
file content (96 lines) | stat: -rwxr-xr-x 2,378 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
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
#!/usr/bin/make -f
# MAde with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.

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

package=yatex

PACKAGE = yatex

TMP     = $(shell pwd)/debian/tmp
ELDIR   = ${TMP}/usr/share/emacs/site-lisp/${package}
EMACSEN = ${TMP}/usr/lib/emacsen-common/packages
INFODIR = ${TMP}/usr/share/info/
ETCDIR  = ${TMP}/etc/emacs/site-start.d
DOC	= ${TMP}/usr/share/doc/${package}

LISP    = ${LISP18} ${LISP19}
YAHTML  = yahtml.el
COMMON  = yatexlib.el yatexprc.el
LISP18  = comment.el yatex.el yatexadd.el yatexgen.el yatexenv.el \
          ${COMMON} \
          yatexmth.el yatexhks.el yatexhlp.el \
          yatexm-o.el yatexsec.el  yatexhie.el ${YAHTML}
LISP19  = yatex19.el
HELP    = help/YATEXHLP.jp help/YATEXHLP.eng
INFO    = docs/yatexj docs/yatexe docs/yahtmlj docs/yahtmle

SHELL           := /bin/bash
INSTDIR         := install -m 755 -d
INSTPROG        := install -m 755 -s
INSTDATA        := install -m 644
INSTSCRIPT      := install -m 755

build: build-stamp
build-stamp:
	dh_testdir
	cp -f yatex.new changelog
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp

	-$(MAKE) clean
	rm -f changelog
	rm -rf debian/euc
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	mkdir debian/euc
	mkdir debian/euc/help
	for i in $(LISP) $(HELP) ; do \
		nkf -de $$i > debian/euc/$$i; \
	done
	cd debian/euc && $(INSTDATA) $(LISP) $(ELDIR)
	cd debian/euc && $(INSTDATA) $(HELP) $(ELDIR)
	$(INSTDATA) $(INFO) $(INFODIR)
	$(INSTDATA) debian/yatex-init.el $(ETCDIR)/50yatex-init.el

	touch install-stamp

binary-indep: build install
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_installdocs
	cd ${DOC} && mv qanda htmlqa yatexadd.doc yatexgen.doc \
		yatex.ref README.debian.ja ${DOC}/japanese
	dh_installemacsen
	dh_installmanpages
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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