#!/usr/bin/make -f # -*- makefile -*- # Limit the number of threads in OpenMP ifneq (,$(DEB_BUILD_OPTION_PARALLEL)) export DH_OCTAVE_TEST_ENV = OMP_NUM_THREADS=$(intcmp 4,$(DEB_BUILD_OPTION_PARALLEL),4,$(DEB_BUILD_OPTION_PARALLEL)) else export DH_OCTAVE_TEST_ENV = OMP_NUM_THREADS=1 endif %: dh $@ --buildsystem=octave DEB_COMPRESS_EXCLUDE = .m ### Move Octave scripts into the examples directory SHAREDIR = debian/octave-sparsersb/usr/share EXAMPLESDIR = $(SHAREDIR)/doc/octave-sparsersb/examples OCTDIR = $(SHAREDIR)/octave/packages/sparsersb-* BINDIR = $(OCTDIR)/bin execute_after_dh_auto_install: mkdir -p $(EXAMPLESDIR) mv $(OCTDIR)/sparsersb*.m $(BINDIR)/*.m $(BINDIR)/pd.mtx $(EXAMPLESDIR) chmod -x $(EXAMPLESDIR)/* rm -rf $(BINDIR) rm -f $(OCTDIR)/doc-cache $(BINDIR)/doc-cache