File: rules

package info (click to toggle)
liblangtag 0.5.1-3
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 5,772 kB
  • ctags: 1,757
  • sloc: xml: 51,385; ansic: 11,921; sh: 11,409; makefile: 817
file content (47 lines) | stat: -rwxr-xr-x 1,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
#!/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

ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
  ENABLE_TESTS=y
else
  ENABLE_TESTS=n
endif
CONFIGURE_FLAGS += --libdir=/usr/lib
ifeq "$(ENABLE_TESTS)" "n"
	CONFIGURE_FLAGS += --disable-test
endif

override_dh_auto_clean:
	rm -f liblangtag/lt-localealias.h
	rm -f config.log
	dh_auto_clean

%:
	dh $@  --with autotools-dev --with gir --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- $(CONFIGURE_FLAGS)

override_dh_auto_build-arch:
	$(MAKE) V=1

override_dh_auto_build-indep:
	dh_auto_configure -- $(CONFIGURE_FLAGS) --enable-gtk-doc
	$(MAKE) V=1

ifeq "$(ENABLE_TESTS)" "n"
override_dh_auto_test:
	
else
override_dh_auto_test:
	$(MAKE) check
endif