Codebase list findbugs / 64363ba debian / rules
64363ba

Tree @64363ba (Download .tar.gz)

rules @64363ba

d154e27
 
 
 
b998c1d
83c1c9f
 
d154e27
508050f
5ba764b
 
64363ba
83c1c9f
 
ef49437
c46dfb1
9d85a20
1018c13
5ba764b
f19b7e2
 
a48eb0b
3f23a6c
c741040
e9d2058
508050f
 
 
41d5d9f
5133422
 
 
eb0be37
 
0e731cb
 
 
 
5133422
508050f
 
 
 
f19b7e2
508050f
 
e9d2058
64363ba
e9d2058
5133422
#!/usr/bin/make -f
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
#JAVA_HOME = /usr/lib/jvm/default-java

%:
	dh $@ --with maven_repo_helper

override_dh_auto_build:
	ant docs build -Dant.java.version=1.8

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

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

	# install docs here
	mkdir -p $(CURDIR)/debian/findbugs/usr/share/doc/findbugs
	cp -Rv $(CURDIR)/build/doc/manual $(CURDIR)/debian/findbugs/usr/share/doc/findbugs/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 src/doc/bugDescriptions_??.html
	dh_auto_clean

override_dh_auto_test:
	ant test -Dant.java.version=1.8
	dh_auto_test