File: rules

package info (click to toggle)
yamcha 0.33-2
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 2,740 kB
  • sloc: sh: 10,503; cpp: 5,127; perl: 1,363; makefile: 233; python: 93; ruby: 33; ansic: 6
file content (65 lines) | stat: -rwxr-xr-x 2,101 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
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
#!/usr/bin/make -f

export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export DEB_CFLAGS_MAINT_APPEND = -Wall
include /usr/share/dpkg/buildflags.mk

DEB_MAKE_CHECK_TARGET := check
DEB_BUILD_PARALLEL := 1
DEB_DH_MAKESHLIBS_ARGS_ALL := -V -- -t

CFLAGS += -Wall -Wno-deprecated
CXXFLAGS += -Wall -Wno-deprecated

include /usr/share/cdbs/1/rules/upstream-tarball.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_INSTALL_DOCS_ALL :=
DEB_INSTALL_CHANGELOGS_ALL :=
DEB_TAR_SRCDIR := .

DEB_AUTO_UPDATE_LIBTOOL = pre
DEB_AUTO_UPDATE_ACLOCAL = ,
DEB_ACLOCAL_ARGS = 
DEB_AUTO_UPDATE_AUTOMAKE = ,
DEB_AUTOMAKE_ARGS = --foreign --add-missing --copy
DEB_AUTO_UPDATE_AUTOCONF = 2.69
DEB_AUTO_UPDATE_AUTOHEADER = 2.69

BUILT_USING_SOURCES := $(shell dpkg-query -W -f='$${source:Package} (= $${source:Version})' darts)
DEB_DH_GENCONTROL_ARGS_yamcha := -- '-Vmisc:Built-Using=$(BUILT_USING_SOURCES)'

BACKUP=yamcha.spec perl/Makefile.PL ruby/extconf.rb python/setup.py \
 missing depcomp Makefile.in doc/Makefile.in man/Makefile.in src/Makefile.in tests/Makefile.in libexec/Makefile.in \
 configure aclocal.m4 config.h.in ltmain.sh \
 perl/YamCha.pm perl/YamCha_wrap.cxx \
 python/YamCha.py python/YamCha_wrap.cxx \
 ruby/YamCha_wrap.cpp \
 man/yamcha.1 doc/yamcha.html

pre-build::
	# Backup files expected to be modified.
	set -e ; for i in $(BACKUP); do \
		if [ ! -f "$$i".backup ]; then cp -a "$$i" "$$i".backup; fi ; \
	done
	make -C swig

ifeq "$(filter nodoc,$(DEB_BUILD_OPTIONS))" ""
common-install-prehook-impl::
	make update-man -C man
	make update-html -C doc
	mkdir -p debian/tmp/html
	cp -a doc/*.html doc/*.css doc/*.png debian/tmp/html
endif

clean::
	set -e ; for i in $(BACKUP); do \
		if [ -f "$$i".backup ]; then mv -f "$$i".backup "$$i"; fi ; \
	done
	$(RM) tests/tmp.log tests/tmp.model tests/tmp.result tests/tmp.se tests/tmp.svmdata tests/tmp.txtmodel.gz
	$(RM) compile test-driver

# Needed by upstream build process
CDBS_BUILD_DEPENDS += , dpkg-dev (>= 1.16.2) , tinysvm, darts, swig, help2man, man2html