File: rules

package info (click to toggle)
byteman 4.0.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,988 kB
  • sloc: java: 42,483; xml: 7,635; sh: 351; makefile: 23
file content (28 lines) | stat: -rwxr-xr-x 1,171 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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure
	for PKG in submit install agent jigsaw; \
	do for VERSION in debian $(DEB_VERSION_UPSTREAM); \
	   do \
		mkdir --parents debian/maven-repo/org/jboss/byteman/byteman-$${PKG}/$${VERSION}; \
		test -e debian/maven-repo/org/jboss/byteman/byteman-$${PKG}/$${VERSION}/byteman-$${PKG}-$${VERSION}.pom || \
			ln -s ../../../../../../../$${PKG}/pom.xml \
			debian/maven-repo/org/jboss/byteman/byteman-$${PKG}/$${VERSION}/byteman-$${PKG}-$${VERSION}.pom; \
		test -e debian/maven-repo/org/jboss/byteman/byteman-$${PKG}/$${VERSION}/byteman-$${PKG}-$${VERSION}.jar || \
			ln -s ../../../../../../../$${PKG}/target/byteman-$${PKG}-$(DEB_VERSION_UPSTREAM).jar \
			debian/maven-repo/org/jboss/byteman/byteman-$${PKG}/$${VERSION}/byteman-$${PKG}-$${VERSION}.jar; \
           done; \
	done
	mkdir --parents debian/byteman-home/lib
	ln -s ../../../byteman/target/byteman-$(DEB_VERSION_UPSTREAM).jar debian/byteman-home/lib/byteman.jar

override_dh_auto_clean:
	dh_auto_clean
	rm -f agent/dependency-reduced-pom.xml contrib/bmunit/pom.xmle
	rm -rf debian/byteman-home