#!/usr/bin/make -f #DH_VERBOSE = 1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/default.mk JAVA_HOME=/usr/lib/jvm/default-java CUPBOARD = biojava \ j2ssh-core \ ibatis \ log4j-1.2 \ postgresql-jdbc3 \ picard \ htsjdk \ commons-net \ commons-lang3 \ batik-all \ batik-awt-util \ batik-dom \ batik-ext \ batik-svggen \ batik-util \ batik-xml # hack to be able to use a space as an argument to the subst function space= space+= CLASSPATH := $(foreach jar, $(CUPBOARD), /usr/share/java/$(jar).jar) CLASSPATH += /usr/share/EMBOSS/jemboss/lib/jemboss.jar \ $(CURDIR) export CLASSPATH := $(subst $(space),:,$(strip $(CLASSPATH))) %: dh $@ --with javahelper override_dh_auto_build: dh_auto_build -- jar sed 's|@CLASSPATH@|$(subst :,$(space),$(subst $(CURDIR),/usr/share/java/artemis.jar,$(CLASSPATH)))|g' debian/artemis.manifest.in > \ debian/artemis.manifest convert images/helix.gif -resize 96x96\! images/helix.png override_dh_auto_test: ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) ln -s /usr/share/javascript/jquery/jquery.js test/coverage-report/evosuite-auto-tests/files/jquery.js ln -s /usr/share/javascript/jquery/jquery.js test/coverage-report/evosuite-auto-tests/html/files/jquery.js mkdir lib cd test && ant -f build-test.xml run-manual-tests-headless -DEMBOSS_ROOT=/usr # || true rm -rf lib rm test/coverage-report/evosuite-auto-tests/files/jquery.js test/coverage-report/evosuite-auto-tests/html/files/jquery.js endif override_dh_auto_clean: dh_auto_clean $(RM) debian/artemis.manifest $(RM) images/helix.png