File: rules

package info (click to toggle)
luatex 0.70.1.20120524-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 242,132 kB
  • sloc: ansic: 890,140; cpp: 469,298; perl: 73,299; sh: 46,668; makefile: 16,604; python: 8,427; lisp: 6,684; xml: 3,926; lex: 3,784; java: 3,569; pascal: 3,569; yacc: 2,461; exp: 2,031; ruby: 1,375; objc: 1,362; tcl: 631; sed: 522; asm: 435; csh: 46; awk: 30
file content (72 lines) | stat: -rwxr-xr-x 1,602 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
#!/usr/bin/make -f

#export DH_VERBOSE=1
export DH_OPTIONS

CFLAGS := -g -Wall
ifneq "$(findstring noopt,$(DEB_BUILD_OPTIONS))" ""
CFLAGS += -O0
else
CFLAGS += -O2
endif

luatex := $(CURDIR)/debian/luatex

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp

build-stamp:
	dh_testdir
	export CONFIG_SHELL=/bin/bash && bash ./build.sh --nostrip
	touch $@

clean:
	dh_testdir
	dh_testroot
	rm -rf build linux
	dh_clean install-stamp build-stamp

install: install-stamp

install-stamp: DH_OPTIONS=
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs usr/bin
	install -m 0577 build/texk/web2c/.libs/luatex $(luatex)/usr/bin
	dh_installman debian/luatex.1
	dh_link usr/bin/luatex usr/bin/texlua	\
		usr/share/man/man1/luatex.1 usr/share/man/man1/texlua.1  \
		usr/bin/luatex usr/bin/texluac	\
		usr/share/man/man1/luatex.1 usr/share/man/man1/texluac.1 \
		usr/share/doc/luatex/luatexref-t.pdf usr/share/doc/texmf/luatex/base/luatexref-t.pdf
	touch install-stamp

binary-indep:
# There aren't any architecture independent packages here.

binary-arch: DH_OPTIONS=-a
binary-arch: install
	dh_testdir
	dh_testroot
	dh_installdocs README 					\
		manual/luatexref-t.pdf 				\
		debian/ANNOUNCE-*
	dh_installexamples debian/examples/*
	dh_installchangelogs source/texk/web2c/luatexdir/ChangeLog
ifeq "$(findstring nostrip,$(DEB_BUILD_OPTIONS))" ""
	dh_strip
endif
	dh_compress -X.pdf
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

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