File: rules

package info (click to toggle)
cognitect-test-runner-clojure 0.5.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: xml: 35; makefile: 17
file content (24 lines) | stat: -rwxr-xr-x 646 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
#!/usr/bin/make -f

cp := $(shell cat debian/libcognitect-test-runner-clojure.classpath)
cp := $(subst $() $(),:,$(wordlist 2,$(words $(cp)),$(cp)))
test_cp := src:test:/usr/share/java/test.check.jar:$(cp)

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

override_dh_auto_configure:
	test ! -e pom.xml || grep -qF 'debian/pom.xml generated' pom.xml
	cp -p debian/pom.xml .
	dh_auto_configure

override_jh_build:
	jar cf debian/test-runner.jar -C src/ .

override_dh_auto_test:
	java -cp $(test_cp) clojure.main \
	  -m cognitect.test-runner cognitect.test-runner.api/test

override_dh_clean:
	rm -f debian/test-runner.jar pom.xml
	dh_clean