SUBDIRS += ocf java
DIST_SUBDIRS += gmock ocf java
+LOCAL_ALL =
+LOCAL_CLEAN =
+LOCAL_INSTALLDATA =
+LOCAL_INSTALLEXEC =
+
if NO_GIT_VERSION
export NO_VERSION="yes"
endif
# cleaning
-clean-local::
+base-clean-local::
rm -f *.so
find . -name '*.gcno' -o -name '*.gcda' -o -name '*.lcov' -o -name "*.o" -o -name "*.lo" | xargs rm -f
rm -f ceph java/java/com/ceph/crush/Bucket.class
+LOCAL_CLEAN += base-clean-local
# pybind
-test/coverage.sh -d $(srcdir) -o check-coverage make check
endif
-install-data-local:: install-coverage
+base-install-data-local:: install-coverage
-mkdir -p $(DESTDIR)$(sysconfdir)/ceph
-mkdir -p $(DESTDIR)$(localstatedir)/log/ceph
-mkdir -p $(DESTDIR)$(localstatedir)/lib/ceph/tmp
+LOCAL_INSTALLDATA += base-install-data-local
+
uninstall-local:: uninstall-coverage
-rmdir -p $(DESTDIR)$(sysconfdir)/ceph/
-rmdir -p $(DESTDIR)$(localstatedir)/log/ceph
include Makefile-server.am
endif
+# local targets
+
+all-local: $(LOCAL_ALL)
+clean-local: $(LOCAL_CLEAN)
+install-exec-local: $(LOCAL_INSTALLEXEC)
+install-data-local: $(LOCAL_INSTALLDATA)
ceph-detect-init/tests/test_all.py \
ceph-detect-init/tox.ini
-all-local::
+ceph-detect-init-all:
cd $(srcdir)/ceph-detect-init ; python setup.py build
-clean-local::
+ceph-detect-init-clean:
cd $(srcdir)/ceph-detect-init ; python setup.py clean ; rm -fr wheelhouse .tox build .coverage *.egg-info
-install-data-local::
+ceph-detect-init-install-data:
cd $(srcdir)/ceph-detect-init ; \
if test "$(DESTDIR)" ; then \
if lsb_release -si | grep --quiet 'Ubuntu\|Debian\|Devuan' ; then \
root="--root=$(DESTDIR)" ; \
fi ; \
python setup.py install $$root $$options
+
+LOCAL_ALL += ceph-detect-init-all
+LOCAL_CLEAN += ceph-detect-init-clean
+LOCAL_INSTALLDATA += ceph-detect-init-install-data