File: rules

package info (click to toggle)
xcb-util 0.2.1%2Bgit1-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,184 kB
  • ctags: 569
  • sloc: sh: 9,128; ansic: 5,388; makefile: 160
file content (22 lines) | stat: -rwxr-xr-x 545 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
#!/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_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:
	./autogen.sh $(DEB_CONFIGURE_NORMAL_ARGS)
	touch configure-stamp

cleanbuilddir::
	rm -f configure-stamp

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