File: rules

package info (click to toggle)
jlex 1.2.6-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 360 kB
  • ctags: 447
  • sloc: java: 5,554; makefile: 43; sh: 8
file content (56 lines) | stat: -rwxr-xr-x 1,076 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
#! /usr/bin/make -f

export DH_COMPAT=3

dtmp    = debian/jlex
JAVAC   = jikes-kaffe
JAR     = /usr/lib/kaffe/bin/jar

build-indep: JLex.jar
JLex.jar: Main.java
	dh_testdir
	$(JAVAC) -d JLex $(JAVACFLAGS) Main.java
	# Weirdly, jikes seems to output JLex/JLex/Foo.class.
	$(JAR) -cmf debian/manifest JLex.jar -C JLex JLex

build-arch:

build: build-indep build-arch

clean:
	dh_testdir
	dh_testroot
	rm -rf JLex JLex.jar
	dh_clean install-stamp

install: install-stamp
install-stamp: JLex.jar
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/bin usr/share/java
	install -m 755 jlex $(dtmp)/usr/bin
	install -m 644 JLex.jar $(dtmp)/usr/share/java
	touch install-stamp

binary-indep: build install
	dh_testdir
	dh_testroot
	dh_installdocs README manual.html
	dh_installexamples sample.lex
	dh_installman jlex.1
	dh_installmenu
	dh_installchangelogs
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch:

binary: binary-indep binary-arch

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