/[debian]/libmicroba-java/branches/NM/debian/rules
ViewVC logotype

Contents of /libmicroba-java/branches/NM/debian/rules

Parent Directory Parent Directory | Revision Log Revision Log


Revision 955 - (show annotations)
Tue Oct 2 18:58:24 2007 UTC (13 years, 9 months ago) by gregoa
File size: 1916 byte(s)
Use quilt for patching instead of calling patch manually.
1 #!/usr/bin/make -f
2 # -*- makefile -*-
3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
8
9 # Uncomment this to turn on verbose mode.
10 #export DH_VERBOSE=1
11
12 include /usr/share/quilt/quilt.make
13
14 TARBALL ?= $(shell uscan --force-download --verbose | tail -n 2 | perl -ne 'print $$_ if s;.*(microba-[\d\.]+-full.zip).*;../$$1;')
15 VERSION ?= $(shell echo $(TARBALL) | perl -pe 's;../microba-(.+)-full.zip;$$1;')
16 TMPDIR := $(shell mktemp -d)
17
18 get-orig-source:
19 unzip $(TARBALL) -d $(TMPDIR)/libmicroba-java-$(VERSION)
20 cd $(TMPDIR) && tar cfz libmicroba-java-$(VERSION).tar.gz libmicroba-java-$(VERSION) && cd $(CURDIR)
21 mv $(TMPDIR)/libmicroba-java-$(VERSION).tar.gz $(CURDIR)/../
22 rm -rf $(TMPDIR)
23
24 configure: configure-stamp
25
26 configure-stamp:
27 dh_testdir
28 unzip $(CURDIR)/microba-*-sources.jar -d src
29 unzip $(CURDIR)/microba-*-javadoc.jar -d doc
30 mv $(CURDIR)/src/build.xml $(CURDIR)/
31 touch configure-stamp
32
33
34 build: build-stamp
35
36 build-stamp: configure-stamp patch
37 dh_testdir
38 ant bin_release
39 touch $@
40
41 clean: unpatch
42 dh_testdir
43 dh_testroot
44 rm -f build-stamp configure-stamp
45 rm -rf src doc redist build.xml
46
47 dh_clean
48
49 install: build
50 dh_testdir
51 dh_testroot
52 dh_clean -k
53 dh_installdirs
54
55 # Build architecture-independent files here.
56 binary-indep: build install
57 dh_testdir
58 dh_testroot
59 dh_installchangelogs src/change.log.txt
60 dh_installdocs
61 dh_install
62 dh_link
63 dh_compress
64 dh_fixperms
65 dh_installdeb
66 dh_shlibdeps
67 dh_gencontrol
68 dh_md5sums
69 dh_builddeb
70
71
72 # Build architecture-dependent files here.
73 binary-arch: build install
74 binary: binary-indep binary-arch
75 .PHONY: build clean binary-indep binary-arch binary install configure

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26