File: rules

package info (click to toggle)
libcmis 0.5.2-3
  • links: PTS
  • area: main
  • in suites: bookworm, bullseye
  • size: 5,304 kB
  • sloc: cpp: 22,872; sh: 4,266; xml: 3,934; ansic: 737; makefile: 507
file content (50 lines) | stat: -rwxr-xr-x 1,391 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

DPKG_EXPORT_BUILDFLAGS=1
include /usr/share/dpkg/buildflags.mk

COMMA = ,
ifneq (,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
  NJOBS := -j $(subst parallel=,,$(filter parallel=%,$(subst $(COMMA), ,$(DEB_BUILD_OPTIONS))))
endif

%:
	dh $@  --parallel --with autoreconf

override_dh_autoreconf:
	if [ ! -f README ]; then touch README; fi
	dh_autoreconf
	
override_dh_clean:
	rm -f libcmis-0.5.pc
	rm -f cmis-client.1
	rm -f README
	dh_clean

override_dh_auto_configure:
ifneq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
	dh_auto_configure -- --disable-tests --disable-long-tests --disable-werror --disable-silent-rules
else
	dh_auto_configure -- --disable-long-tests --disable-werror --disable-silent-rules
endif

override_dh_auto_build:
	$(MAKE) $(NJOBS)

override_dh_auto_test:
	$(MAKE) $(NJOBS) check

override_dh_auto_install:
	dh_auto_install
	find debian -name "*mockup*so*" -exec rm -f {} \;