File: rules

package info (click to toggle)
leiningen-clojure 2.9.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 2,312 kB
  • sloc: xml: 881; sh: 771; lisp: 46; makefile: 34; java: 16
file content (43 lines) | stat: -rwxr-xr-x 1,050 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
38
39
40
41
42
43
#!/usr/bin/make -f

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

export DEBUG=1
export LEIN_HOME=$(CURDIR)/.lein
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-$(DEB_HOST_ARCH)

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

override_dh_auto_build:
	cd leiningen-core && lein bootstrap
	chmod a+x bin/lein
	bin/lein uberjar
	bin/lein pom
	cp bin/lein bin/lein-standalone
	cp bin/lein-pkg bin/lein
	cp zsh_completion.zsh _lein

override_dh_auto_install:
	mh_installjar -pleiningen -l pom.xml target/leiningen-$(DEB_VERSION_UPSTREAM)-standalone.jar
	mh_installpom -pleiningen pom.xml

override_dh_auto_test:
	dh_auto_test -- -f leiningen-core/pom.xml test

override_dh_auto_clean:
	dh_auto_clean
	cd leiningen-core && lein clean
	rm -f leiningen-core/.lein-bootstrap
	rm -f .lein-project-checksum
	rm -f .lein-classpath
	rm -rf .lein
	rm -f pom.xml
	rm -rf target
	rm -f _lein
	if [ -f bin/lein-standalone ] ; then \
		mv bin/lein-standalone bin/lein; \
	fi

override_dh_strip_nondeterminism: