File: rules

package info (click to toggle)
libmemcache 1.4.0.rc2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze, wheezy
  • size: 2,772 kB
  • ctags: 530
  • sloc: sh: 8,605; ansic: 4,207; makefile: 361
file content (24 lines) | stat: -rwxr-xr-x 876 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
#!/usr/bin/make -f
# rules -- Debian packaging rules for libmemcache

# Let's use CDBS! :)

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

# Use touch-fu before build to avoid remaking the autotools.  Wrap this in
# `test' so we don't call `configure' again upon `binary'.
configure/libmemcache0::
	test -f debian/stamp-configure-libmemcache0 || \
		(touch config.h.in && touch stamp-h1 && touch config.h && \
		touch debian/stamp-configure-libmemcache0 )

clean::
	rm -f debian/stamp-configure-libmemcache0

# Enforce tight versioning for dh_makeshlibdeps on libmemcache0
DEB_NOREVISION_VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | \
   cut -f 2 -d ' ' | cut -f 1 -d '-')
DEB_DH_MAKESHLIBS_ARGS_libmemcache0 := -V"libmemcache0 \
   (>= $(DEB_NOREVISION_VERSION))"