File: rules

package info (click to toggle)
octave-ltfat 2.6.0%2Bdfsg-6
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,356 kB
  • sloc: ansic: 31,227; cpp: 9,123; java: 1,499; objc: 1,070; xml: 182; makefile: 152; python: 124; sh: 18; javascript: 12
file content (40 lines) | stat: -rwxr-xr-x 1,329 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/make -f
# -*- makefile -*-

%:
	dh $@ --buildsystem=octave

export CFLAGS = $(shell dpkg-buildflags  --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)

ifeq ($(dpkg-architecture -qDEB_BUILD_ARCH),mips64el)
DEB_BUILD_MAINT_OPTIONS = nocheck
endif

# The following rule is needed because an empty lib/ directory is
# needed for building the package correctly.  Even though there is one
# in the tarball, it is not created by gbp-import-orig, hence the
# mkdir command below.
execute_before_dh_auto_configure:
	mkdir -p lib

# Build the blockproc.jar file, which is deleted from the upstream
# tarball and clean up the generated *.class files
execute_after_dh_auto_build:
	$(MAKE) -C inst/blockproc/java
	find inst/blockproc/java -name \*.class | xargs rm -f

indepdir = debian/octave-ltfat-common/usr/share

execute_after_dh_install:
	rm -rf $(indepdir)/octave/packages/ltfat-*/ltfat

execute_before_dh_installdeb-indep:
	# Remove extraneous README file
	rm $(indepdir)/octave/packages/ltfat-*/README*
	# Remove useless Python script
	rm $(indepdir)/octave/packages/ltfat-*/private/test_ltfatarghelper.py
	# Remove useless scripts im2double.m and normalize.m
	# (they are identical to the ones shipped with Octave)
	for i in im2double.m normalize.m ; do			\
	    find $(indepdir) -name $$i -exec rm \{} \; ;	\
	done