File: rules

package info (click to toggle)
ddd 1%3A3.3.9-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 41,356 kB
  • ctags: 13,202
  • sloc: cpp: 103,920; ansic: 29,318; sh: 9,431; makefile: 2,367; perl: 290; sed: 89; awk: 25
file content (32 lines) | stat: -rwxr-xr-x 935 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
#!/usr/bin/make -f

DEB_BUILDDIR = builddir

include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_CONFIGURE_EXTRA_FLAGS := --with-readline-libraries \
	--disable-builtin-app-defaults --disable-builtin-manual \
	--disable-builtin-news --disable-builtin-license
DEB_C_DEFAULT_OPT += -W -DNDEBUG

# Disable the make check command, which wants to run ddd interactively
DEB_MAKE_CHECK_TARGET :=

DEB_INSTALL_DOCS_ALL :=

ifeq ($(DEB_BUILD_ARCH),powerpc)
DEB_MAKE_ENVVARS := LIBELF="-lelf"
else
DEB_MAKE_ENVVARS := LIBELF=""
endif

# Overwrite the program-determined USERINFO with info from debian/changelog.
common-build-arch::
	grep '^ -- ' debian/changelog | head -1 | sed -e 's/^ -- //' \
		-e 's/ 	.*$$//' > $(DEB_BUILDDIR)/ddd/USERINFO.txt~
	mv builddir/ddd/USERINFO.txt~ $(DEB_BUILDDIR)/ddd/USERINFO.txt
	$(DEB_MAKE_INVOKE)

common-install-arch::
	rm -f $(DEB_DESTDIR)/usr/share/ddd*/COPYING