2015-10-24 14:38:40 +02:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
DOC = $(CURDIR)/debian/scylla-jmx/usr/share/doc/scylla-jmx
|
|
|
|
DEST = $(CURDIR)/debian/scylla-jmx/usr/lib/scylla/jmx
|
2015-11-24 11:22:54 +01:00
|
|
|
M2_REPO= $(CURDIR)/m2
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
override_dh_auto_build:
|
2015-11-24 11:22:54 +01:00
|
|
|
mvn -Dmaven.repo.local=$(M2_REPO) install
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
override_dh_auto_clean:
|
2015-11-24 11:22:54 +01:00
|
|
|
rm -rf target m2
|
2015-10-24 14:38:40 +02:00
|
|
|
|
|
|
|
override_dh_auto_install:
|
|
|
|
mkdir -p $(CURDIR)/debian/scylla-jmx/etc/default/ && \
|
|
|
|
cp $(CURDIR)/dist/common/sysconfig/scylla-jmx \
|
|
|
|
$(CURDIR)/debian/scylla-jmx/etc/default/
|
|
|
|
|
|
|
|
mkdir -p $(DOC) && \
|
|
|
|
cp $(CURDIR)/*.md $(DOC)
|
|
|
|
cp $(CURDIR)/NOTICE $(DOC)
|
|
|
|
|
|
|
|
mkdir -p $(DEST)
|
|
|
|
cp $(CURDIR)/dist/common/scripts/* $(DEST)
|
|
|
|
cp $(CURDIR)/target/urchin-mbean-1.0.jar $(DEST)
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@
|