File: rules

package info (click to toggle)
apache-directory-api 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 23,436 kB
  • sloc: java: 197,482; xml: 7,651; perl: 108; makefile: 13
file content (19 lines) | stat: -rwxr-xr-x 638 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/make -f

%:
	dh $@

override_dh_install:
	dh_install

	# Keep only the api-all artifact
	rm -Rf debian/libapache-directory-api-java/usr/share/java/*.jar
	rm -Rf debian/libapache-directory-api-java/usr/share/maven-repo/*
	rm -Rf all/target/*-sources.jar
	mh_installpom -plibapache-directory-api-java --no-parent all/dependency-reduced-pom.xml
	mh_installjar -plibapache-directory-api-java --java-lib --usj-name=apache-directory-api-all  all/dependency-reduced-pom.xml all/target/api-all-*.jar

override_dh_auto_clean:
	dh_auto_clean
	find . -name MANIFEST.MF | xargs -r rm
	find . -name dependency-reduced-pom.xml | xargs -r rm