File: rules

package info (click to toggle)
vowpal-wabbit 8.6.1.dfsg1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 46,556 kB
  • sloc: cpp: 41,074; cs: 17,960; python: 4,296; perl: 3,823; makefile: 1,717; java: 1,415; sh: 1,299; xml: 624; ansic: 374; ruby: 100
file content (72 lines) | stat: -rwxr-xr-x 2,167 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/make -f
# -*- makefile -*-

MANPAGES=vowpalwabbit/vw.1
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
DEB_HOST_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_HOST_ARCH_CPU)

ifneq ($(filter $(DEB_HOST_ARCH_CPU),amd64 i386),)
OPTS=CXXFLAGS="-mmmx -msse -msse2 -mfpmath=sse"
endif


%: README
	dh  $@ --buildsystem=autoconf --with autoreconf

README: README.md
	fgrep -v "Status]" $< \
      | markdown \
      | html2text -style pretty -nobs \
      | sed -e 's:&gt;:>:g' \
      > $@

%.1: %
	help2man --no-info --name="Vowpal Wabbit -- fast online learning tool" ./$< > $@

override_dh_auto_configure:
	dh_auto_configure -- \
      $(shell dpkg-buildflags --export=configure) \
      --with-boost-libdir=/usr/lib/$(DEB_HOST_MULTIARCH) $(OPTS)

override_dh_auto_build:
	dh_auto_build
	debian/rules $(MANPAGES)

override_dh_auto_install:
	dh_auto_install
	: # We generally do not ship .la on Debian systems
	find debian/ -name '*.la' | xargs -r rm -f
	: # We do not patch upstream to not build it (useful to test)
	: # put it makes no sense to install it
	find debian/ -name library_example -delete

override_dh_installexamples:
	dh_installexamples
	: # Don't ship unreproducible test timings
	find debian/ -name RunTests.last.times -type f -delete
	: # Don't ship unreproducible model file
	find debian/ -name 0001.model -type f -delete
	: # Change permissions on windows-generated files
	find debian/ -name '*-mswin' -type f | xargs -r chmod a-x

override_dh_auto_test:
	: # I: run tests providing options for verbose output on failures
	cd test && ./RunTests -c -d -f
	: # I: cleaning up after running tests
	find test/ -name '*.tmp' -o -name '*.cache' | xargs -r rm -f
	rm -f test/*.predict

override_dh_auto_clean:
	dh_auto_clean
	-rm -f README
	-rm -f test/*.predict test/*.tmp depend $(MANPAGES)
	: # And more garbage left with autoreconf
	-rm -f vowpalwabbit/config.h vowpalwabbit/depend
	: # Remove generated makefiles
	-rm -f Makefile library/Makefile cluster/Makefile vowpalwabbit/Makefile

override_dh_strip:
	dh_strip --dbg-package=vowpal-wabbit-dbg

override_dh_compress:
	dh_compress -X.dat -X.predict -X.model -XRunTests