File: rules

package info (click to toggle)
xcb-util-image 0.3.9-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 1,792 kB
  • sloc: sh: 11,088; ansic: 1,933; makefile: 60
file content (28 lines) | stat: -rwxr-xr-x 766 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
#!/usr/bin/make -f

DEB_DH_INSTALL_SOURCEDIR=debian/tmp

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

DEB_CONFIGURE_EXTRA_FLAGS += --libdir=\$${prefix}/lib/$(DEB_HOST_MULTIARCH)
DEB_DH_MAKESHLIBS_ARGS=-V

ORIG_MAJOR=$(shell git describe upstream | cut -d- -f1)
ORIG_GIT=$(shell git describe upstream | cut -d- -f2)

post-patches:: configure-stamp
configure-stamp:
	test -f configure || sh ./autogen.sh $(DEB_CONFIGURE_NORMAL_ARGS)
	touch configure-stamp

cleanbuilddir::
	rm -f configure-stamp

	# Specific to Git Debian package
	rm -f .gitmodules m4/xcb_util_m4_with_include_path.m4

get-orig-source:
	git archive upstream | gzip -9 > ../xcb-util-image_$(ORIG_MAJOR)+git$(ORIG_GIT).orig.tar.gz

.PHONY: get-orig-source