File: rules

package info (click to toggle)
libjson-java 3.1.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,796 kB
  • sloc: java: 18,611; xml: 1,854; javascript: 527; makefile: 9
file content (17 lines) | stat: -rwxr-xr-x 493 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/make -f

DEB_VERSION_UPSTREAM_STRIPPED = $(shell echo $(DEB_VERSION_UPSTREAM) | sed 's/\+.*//')

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

%:
	dh $@  --buildsystem=maven --with javahelper

execute_before_dh_auto_configure:
	# Putting the version number in the custom pom.xml
	sed "s/#VERSION#/$(DEB_VERSION_UPSTREAM_STRIPPED)/" debian/pom.xml.in > pom.xml
	# Creating a symlink to the src dir we need.
	ln -s subprojects/json-lib-core/src src

execute_after_dh_clean:
	$(RM) pom.xml src