31 lines
710 B
Makefile
Executable File
31 lines
710 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
|
|
DOC = $(CURDIR)/debian/scylla-jmx/usr/share/doc/scylla-jmx
|
|
DEST = $(CURDIR)/debian/scylla-jmx/usr/lib/scylla/jmx
|
|
M2_REPO= $(CURDIR)/m2
|
|
|
|
override_dh_auto_build:
|
|
mvn -Dmaven.repo.local=$(M2_REPO) install
|
|
|
|
override_dh_auto_clean:
|
|
rm -rf target m2
|
|
|
|
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)/scripts/scylla-jmx $(DEST)
|
|
cp $(CURDIR)/target/scylla-jmx-1.0.jar $(DEST)
|
|
|
|
override_dh_installinit:
|
|
dh_installinit --no-start @@DH_INSTALLINIT@@
|
|
|
|
%:
|
|
dh $@
|