File: cunit-ncurses

package info (click to toggle)
cunit 2.1-0.dfsg-10
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,992 kB
  • sloc: sh: 8,258; ansic: 7,209; makefile: 391; perl: 45; cpp: 42
file content (58 lines) | stat: -rw-r--r-- 1,359 bytes parent folder | download | duplicates (3)
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
48
49
50
51
52
53
54
55
56
57
58
# -*- makefile -*-

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

# These are used for cross-compiling and for saving the configure script
# from having to guess our platform (since we know it already)
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)

CFLAGS = -Wall -g

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
	CFLAGS += -O0
else
	CFLAGS += -O2
endif

config.status: configure
	dh_testdir

	./configure \
		--host=$(DEB_HOST_GNU_TYPE) \
		--build=$(DEB_BUILD_GNU_TYPE) \
		--prefix=/usr \
		--mandir=\$${prefix}/share/man \
		--infodir=\$${prefix}/share/info \
		--enable-curses \
		CFLAGS="$(CFLAGS)" \
		LDFLAGS="-Wl,-z,defs -lncurses"

build: config.status
	dh_testdir

	$(MAKE)

install: build
	dh_testdir
	dh_testroot
	dh_installdirs

# <bugfix>
	find Examples | xargs chmod 644
# </bugfix>

	$(MAKE) install \
		DESTDIR=$(CURDIR)/debian/tmp-cunit-ncurses \
		docdir=\$${prefix}/share/doc/libcunit1-doc/html \
		dochdrdir=\$${prefix}/share/doc/libcunit1-doc/html/headers

	install -d debian/tmp-cunit-ncurses/usr/share/lintian/overrides
	install -m644 debian/libcunit1-ncurses.override \
		debian/tmp-cunit-ncurses/usr/share/lintian/overrides/libcunit1-ncurses

clean:
	$(RM) -r debian/tmp-cunit-ncurses

.PHONY: build install clean