File: rules

package info (click to toggle)
gcal 4.2.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 17,952 kB
  • sloc: ansic: 98,660; sh: 8,454; perl: 2,088; awk: 1,531; makefile: 614; sed: 166
file content (37 lines) | stat: -rwxr-xr-x 827 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
#!/usr/bin/make -f
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export MAKEINFO=/usr/bin/makeinfo

CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)

CFLAGS+=-O2 -Wall -D_GNU_SOURCE
LDFLAGS+=-Wl,-z,now

ifeq "$(findstring debug,$(DEB_BUILD_OPTIONS))" "debug"
	CFLAGS += -g
endif

%:
	-dh $@

override_dh_auto_configure:
	PAGER1=pager dh_auto_configure

override_dh_auto_build:
	$(MAKE) CFLAGS="$(CFLAGS) $(CPPFLAGS)" LDFLAGS="$(LDFLAGS)"

override_dh_auto_clean:
	dh_clean
	rm -f gmon.out
	rm -f po/stamp-po
	rm -f intl/libintl.h

override_dh_auto_install:
	dh_auto_install
	dh_installinfo -pgcal-common doc/en/gcal.info*