File: rules

package info (click to toggle)
octave-sparsersb 1.0.8-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 656 kB
  • sloc: cpp: 2,752; makefile: 80; awk: 4; sh: 3
file content (24 lines) | stat: -rwxr-xr-x 624 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --buildsystem=octave --with=octave

DEB_COMPRESS_EXCLUDE = .m

override_dh_auto_configure:
	( cd src ; autoconf )

### 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
override_dh_auto_install:
	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