File: rules

package info (click to toggle)
trimmomatic 0.32%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 400 kB
  • ctags: 388
  • sloc: java: 3,182; xml: 67; sh: 15; makefile: 15
file content (31 lines) | stat: -rwxr-xr-x 766 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
#!/usr/bin/make -f
# -*- makefile -*-
# debian/rules file for trimmomatic
# Andreas Tille <tille@debian.org>
# GPL

pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
ver := $(shell dpkg-parsechangelog | awk '/^Version/ { print $$2 }' | cut -d- -f1 )

%:
	dh $@ --with javahelper

override_dh_auto_build:
	cp debian/MANIFEST.MF .
	if [ ! -d dist/unpack ]; then mkdir -p dist/unpack; fi
	touch dist/unpack/LICENCE
	touch dist/unpack/AUTHORS
	ant

override_dh_clean:
	rm -f MANIFEST.MF
	dh_clean

#override_dh_link:
#	dh_link
#	# enable symlinking without any need to edit for new versions
#	dh_link usr/share/java/$(pkg)-$(ver).jar usr/share/java/$(pkg).jar

get-orig-source:
	# uscan --verbose --force-download --repack --rename
	. debian/get-orig-source