File: rules

package info (click to toggle)
imaptool 0.9-10
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 324 kB
  • ctags: 489
  • sloc: ansic: 3,740; makefile: 97
file content (23 lines) | stat: -rwxr-xr-x 476 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
#! /usr/bin/make -f
%:
	dh $@

ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
CFLAGS := -O2 -g -Wall
else
CFLAGS := -g -Wall
endif

override_dh_auto_build:
	dh_auto_build -- CFLAGS="$(CFLAGS)"

# You only need to run this immediately after checking out the package from
# revision control.
quilt-setup:
	[ ! -d .pc ]
	set -e; for patch in $$(quilt series | tac); do \
		patch -p1 -R --no-backup-if-mismatch <"debian/patches/$$patch"; \
	done
	quilt push -a

.PHONY: quilt-setup