File: rules

package info (click to toggle)
tuxguitar 1.2-23
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,540 kB
  • sloc: java: 75,206; xml: 2,213; ansic: 1,169; makefile: 978; cpp: 424; sh: 146
file content (78 lines) | stat: -rwxr-xr-x 1,763 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
#! /usr/bin/make -f
# -*- makefile -*-
default: build

#export DH_VERBOSE=1
MAINPACKAGE?=$(shell dpkg-parsechangelog -S Source)
PACKAGE?=tuxguitar
JAVA_HOME=/usr/lib/jvm/default-java
JAVA?=${JAVA_HOME}/jre/bin/java
JAVAC?=${JAVA_HOME}/bin/javac
export JAVAC JAVA JAVA_HOME
DEB_DESTDIR?=${CURDIR}/debian/${MAINPACKAGE}
DEB_DESTDIR_TMP?=${CURDIR}/debian/tmp/${MAINPACKAGE}

# build flags for hardening
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

build: build-arch build-indep
build-arch: build-stamp
build-indep: build-stamp
build-stamp:
	dh_testdir
#	${MAKE} clean ${MAKE}
	docbook-to-man misc/${PACKAGE}.sgml > debian/${PACKAGE}.1
	touch $@

distclean: clean

clean:
	dh_testdir
	dh_testroot
	${MAKE} -k clean distclean $@ || echo "Ignored"
	${RM} -f build-stamp configure-stamp
	${RM} -f debian/${PACKAGE}.1 ./TuxGuitar/tuxguitar
	${RM} -rf TuxGuitar/build
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_prep
	dh_installdirs
	${MAKE} $@ DESTDIR=${DEB_DESTDIR}
	${MAKE} $@-linux DESTDIR=${DEB_DESTDIR_TMP}
	install -d ${DEB_DESTDIR}/usr/bin/
	rm -vf ${DEB_DESTDIR}/usr/share/tuxguitar/doc/LICENSE
	dh_install

binary-common:
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs --exclude=LICENSE
	dh_installexamples
	dh_install
	dh_installmenu
	dh_installman
	dh_link
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-indep: build install
	$(MAKE) -f debian/rules DH_OPTIONS=-i binary-common

# Build architecture dependant packages using the common target.
binary-arch: build install
	$(MAKE) -f debian/rules DH_OPTIONS=-s binary-common

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

#eof "$Id: debian/rules $"