File: rules

package info (click to toggle)
liblangtag 0.6.3-2
  • links: PTS
  • area: main
  • in suites: bullseye
  • size: 6,492 kB
  • sloc: xml: 59,756; ansic: 12,761; sh: 4,515; makefile: 827
file content (46 lines) | stat: -rwxr-xr-x 1,084 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
#!/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
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) --enable-static

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