|
1
by luke at faraone
Initial release |
1 |
#!/usr/bin/make -f
|
2 |
||
3 |
include /usr/share/cdbs/1/rules/debhelper.mk |
|
4 |
include /usr/share/cdbs/1/class/autotools.mk |
|
5 |
include /usr/share/cdbs/1/rules/simple-patchsys.mk |
|
6 |
||
7 |
# Add here any variable or target overrides you need.
|
|
8 |
#DEB_AUTO_UPDATE_AUTOCONF=2.6.1
|
|
9 |
#DEB_AUTO_UPDATE_AUTOMAKE=1.11
|
|
10 |
#DEB_AUTOMAKE_ARGS="--add-missing"
|
|
11 |
#DEB_ACLOCAL_ARGS="-I m4"
|
|
12 |
#DEB_LIBTOOL_ARGS="--copy --force --automake"
|
|
13 |
#DEB_AUTO_UPDATE_LIBTOOL=pre
|
|
14 |
||
15 |
DEB_CONFIGURE_SCRIPT := ./autogen.sh |
|
|
8
by Luke Faraone
Put docs in a package. |
16 |
DEB_CONFIGURE_EXTRA_FLAGS := --enable-gtk-doc |
|
1
by luke at faraone
Initial release |
17 |
|
18 |
clean:: |
|
19 |
rm -f depcomp missing missing depcomp m4/gtk-doc.m4 |
|
|
8
by Luke Faraone
Put docs in a package. |
20 |
|
|
2
by luke at faraone
Clean out the packaging tree, make lintian clean. |
21 |
# Rules for fetching the upstream tarball
|
|
9
by Luke Faraone
Finalize for initial release. Change version information. |
22 |
CURRENT_TREEISH =$(shell dpkg-parsechangelog | sed -rne 's,^Version: .*git.{9}([^-]+).*,\1,p') |
|
2
by luke at faraone
Clean out the packaging tree, make lintian clean. |
23 |
CURVER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p') |
24 |
||
25 |
SOURCE_DIR=gtksheet-$(CURVER) |
|
26 |
TARBALL=gtksheet_$(CURVER).orig.tar.gz |
|
27 |
||
28 |
||
29 |
$(SOURCE_DIR): |
|
30 |
git clone git://github.com/vhernandez/gtksheet.git $(SOURCE_DIR) |
|
31 |
if [ x$(CURRENT_TREEISH) = x ]; then \ |
|
32 |
cd $(SOURCE_DIR) && git checkout v$(CURVER); \ |
|
33 |
else \
|
|
34 |
cd $(SOURCE_DIR) && git checkout $(CURRENT_TREEISH); \ |
|
35 |
fi
|
|
36 |
||
37 |
||
38 |
$(TARBALL): $(SOURCE_DIR) |
|
39 |
tar czvf $(TARBALL) $(SOURCE_DIR) |
|
40 |
||
41 |
get-orig-source: $(TARBALL) |
|
42 |
rm -rf $(SOURCE_DIR) $(SOURCE_DIR).temp |
|
43 |