File: rules

package info (click to toggle)
vigor 0.016-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,700 kB
  • ctags: 3,859
  • sloc: ansic: 44,551; sh: 2,941; tcl: 1,544; makefile: 754; perl: 269; awk: 24; csh: 13
file content (31 lines) | stat: -rwxr-xr-x 755 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
#! /usr/bin/make -f

CPPFLAGS = -I/usr/include/tcl8.4

ifeq (,$(filter noopt,$(DEB_BUILD_OPTIONS)))
OPTFLAG = -O2 -g
else
OPTFLAG = -g
endif

configure:
	dh --sourcedirectory=build build --until dh_auto_configure

build clean install binary-arch binary-indep binary:
	dh --sourcedirectory=build $@

override_dh_auto_configure:
	ADDCPPFLAGS="$(CPPFLAGS)" OPTFLAG="$(OPTFLAG)" \
		dh_auto_configure -- --with-x --enable-db --enable-re

override_dh_clean:
	# This is in the upstream tarball, so shouldn't be removed.
	dh_clean -X 'vi/#v_xchar.c#'

override_dh_auto_install:
	dh_auto_install -- prefix=$(CURDIR)/debian/vigor/usr

override_dh_installchangelogs:
	dh_installchangelogs docs/changelog

.PHONY: build clean install binary-arch binary-indep binary