File: rules

package info (click to toggle)
findbugs 2.0.3%2Brepack-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 16,220 kB
  • ctags: 19,327
  • sloc: java: 123,960; xml: 30,230; sh: 356; sql: 126; perl: 122; makefile: 45
file content (54 lines) | stat: -rwxr-xr-x 1,238 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
#!/usr/bin/make -f
# -*- makefile -*-

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

#JAVA_HOME = /usr/lib/jvm/default-java

SHAREPACDIR=$(SHAREDIR)/$(BASE_NAME)



%:
	dh $@ --with maven_repo_helper

override_dh_auto_build:
	ant docs build

override_dh_auto_install:
	chmod -x $(CURDIR)/bin/findbugs.ico

	mkdir -p $(CURDIR)/debian/findbugs/usr/bin

	# install docs here
	cp -R $(CURDIR)/doc/manual $(CURDIR)/doc/html

	dh_install --sourcedir=$(CURDIR)
	dh_link

	mh_installpom -pfindbugs debian/poms/findbugs-annotations.pom
	mh_installjar -pfindbugs debian/poms/findbugs-annotations.pom \
		--usj-name=findbugs-annotations -l lib/annotations.jar

	# prepare findbugs.1
	help2man -h "-help" -v "-version" \
		-n "Static Java Code Analyzer" \
		$(CURDIR)/debian/findbugs/usr/bin/fb \
		-o $(CURDIR)/debian/fb.1
	help2man -h "-textui" -v "-version" \
		-n "Static Java Code Analyzer" \
		$(CURDIR)/debian/findbugs/usr/bin/findbugs \
		-o $(CURDIR)/debian/findbugs.1

override_dh_auto_clean:
	rm -f $(CURDIR)/debian/findbugs.1 $(CURDIR)/debian/fb.1
	rm -f lib/*.jar
	rm -rf classesEclipse/
	rm -f src/doc/allBugDescriptions.html src/doc/bugDescriptions.html
	dh_auto_clean

override_dh_auto_test:
	ant test
	dh_auto_test