Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 include /usr/share/dpkg/pkg-info.mk
4
5 export LEIN_HOME=$(CURDIR)/.lein
6 export LEIN_OFFLINE=true
7 NAME=camel-snake-kebab
8
9 %:
10 dh $@ --with javahelper --with maven_repo_helper
11
12 override_dh_auto_configure:
13 cd debian && ln -sf /usr/share/maven-repo .
14
15 override_dh_auto_build:
16 lein pom debian/pom.xml
17 lein jar
18 # symlinks so we don't need a version in debian/*.poms
19 cd target && ln -sf $(NAME)-$(DEB_VERSION_UPSTREAM).jar $(NAME).jar
20
21 override_dh_auto_test:
22 ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
23 lein test
24 endif
25
26 execute_after_dh_clean:
27 rm -Rf target
28 rm -f debian/maven-repo
29 rm -f debian/pom.xml
30 rm -f .lein-failures