File: rules

package info (click to toggle)
phylip 1%3A3.696%2Bdfsg-5
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 4,340 kB
  • ctags: 5,228
  • sloc: ansic: 64,948; java: 2,251; makefile: 58; xml: 46; sh: 32
file content (39 lines) | stat: -rwxr-xr-x 1,188 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
#!/usr/bin/make -f
# debian/rules for phylip using dh
# Andreas Tille <tille@debian.org>, GPL

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

DEBPKGNAME		:= $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
DEB_HOST_MULTIARCH	?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
LIBDIR			:= $(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/ # $(DEB_HOST_MULTIARCH)

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

%:
	dh $@ --with javahelper --no-parallel

override_dh_auto_build:
	dh_auto_build --sourcedirectory=src --buildsystem=makefile -- -f Makefile.unx all
	cp debian/build.xml build.xml
	ant

override_dh_auto_install:
	dh_auto_install --sourcedirectory=src --buildsystem=makefile -- -f Makefile.unx install DATADIR=../fonts
#	mkdir -p $(LIBDIR)
#	cp -a src/lib*.so* $(LIBDIR)

override_dh_installexamples:
	dh_installexamples
	find debian -type f -name "*.txt" -exec chmod a-x \{\} \;

override_dh_auto_clean:
	dh_auto_clean --sourcedirectory=src --buildsystem=makefile -- -f Makefile.unx clean
	rm -fr exe/* fonts/ src/*.so*
	if [ -e build.xml ] ; then \
	    ant clean ; \
	    rm -rf dist build.xml ; \
	fi

get-orig-source:
	uscan --verbose --force-download --repack --compress xz