File: rules

package info (click to toggle)
prismatic-schema-clojure 1.1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 444 kB
  • sloc: xml: 120; sh: 33; makefile: 23
file content (37 lines) | stat: -rwxr-xr-x 966 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
#!/usr/bin/make -f

include /usr/share/javahelper/java-vars.mk
include /usr/share/dpkg/pkg-info.mk

export LEIN_HOME=$(CURDIR)/.lein
export LEIN_OFFLINE=true
NAME=schema

%:
	dh $@ --with javahelper --with maven_repo_helper

override_dh_auto_configure:
	cd debian && ln -sf /usr/share/maven-repo .

override_dh_auto_build:
	lein cljx
	lein jar
	# symlink so we don't need a version in debian/*.poms
	cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar
	# This is a temporary measure not to create breakage. We eventually need to
	# get rid of the old name.
	cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar prismatic-schema.jar

override_dh_auto_test:
	lein test

override_jh_installlibs:
	jh_installlibs target/$(NAME).jar
	# This is a temporary measure not to create breakage. We eventually need to
	# get rid of the old name.
	jh_installlibs target/prismatic-schema.jar

override_dh_clean:
	rm -f debian/maven-repo
	rm -Rf target
	dh_clean