File: rules

package info (click to toggle)
dxpc 3.9.2-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,140 kB
  • ctags: 1,253
  • sloc: cpp: 12,036; sh: 2,823; makefile: 78
file content (25 lines) | stat: -rwxr-xr-x 807 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
#!/usr/bin/make -f
# -*- makefile -*-

l_PACKAGE := dxpc
l_VERSION := $(shell dpkg-parsechangelog | \
             awk '/Version:/ {print $$2}' | cut -d- -f 1)

DEB_TAR_SRCDIR = $(l_PACKAGE)-$(l_VERSION)
DEB_INSTALL_DOCS_dxpc = $(DEB_BUILDDIR)/CHANGES

# Include cdbs rules files.

# If we add patches, update README.source and add a build-dep on quilt.
#include /usr/share/cdbs/1/rules/patchsys-quilt.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/debhelper.mk

DEB_MAKE_INSTALL_TARGET = prefix=$(CURDIR)/debian/$(l_PACKAGE)/usr \
	  MANDIR=$(CURDIR)/debian/$(l_PACKAGE)/usr/share/man/man1 \
	  install

# As 0.4.21, cdbs creates but doesn't debian/compat.  It creates it
# conditionally, so this doesn't have a trivial fix.
clean::
	$(RM) debian/compat *.cdbs-config_list