source: jclic/trunk/fuentes/debian/rules @ 3466

Last change on this file since 3466 was 3466, checked in by Juanma, 4 years ago

Updated to 3.2.1

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/usr/bin/make -f
2
3# Uncomment this to turn on verbose mode.
4#export DH_VERBOSE=1
5
6include /usr/share/quilt/quilt.make
7
8# Force ant to use gcj as JDK to make the build more reproducible
9export JAVA_HOME=/usr/lib/jvm/default-java
10
11#DEB_ANT_ARGS := -verbose
12
13# This has to be exported to make some magic below work.
14export DH_OPTIONS
15
16ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
17        ANT_OPT += -Dcompiler.optimize=false
18else
19        ANT_OPT += -Dcompiler.optimize=true
20endif
21
22ifneq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23        ANT_OPT += -Dcompiler.debug=true
24else
25        ANT_OPT += -Dcompiler.debug=false
26endif
27
28build-arch: 
29        # do nothing
30build-indep:
31        # do nothing
32
33#build: patch build-stamp
34build: build-stamp build-arch build-indep
35
36build-stamp: 
37        dh_testdir
38
39        ant -noinput $(ANT_OPT) all
40       
41        touch build-stamp
42
43clean: 
44        dh_testdir
45        dh_testroot
46        rm -f build-stamp
47        # svn support for quilt  ---v
48        #rm -Rf dist/reports
49
50        -ant -noinput $(ANT_OPT) clean
51        chmod -x dist/jclic/icons/*.png
52        # svn support for quit ---v
53        #${MAKE} -f debian/rules unpatch
54        dh_clean
55
56install: build
57        dh_testdir
58        dh_testroot
59        dh_clean -k -i
60        dh_installdirs -i
61        dh_install -i
62        cp -f dist/jclic/icons/author.png   $(CURDIR)/debian/jclic/usr/share/pixmaps/jclicauthor.png
63        cp -f dist/jclic/icons/reports.png $(CURDIR)/debian/jclic/usr/share/pixmaps/jclicreports.png
64        dllxh_install
65
66binary-arch: build install
67# We have nothing to do by default.
68
69
70binary-indep: build install
71        dh_testdir
72        dh_testroot
73        dh_installchangelogs ChangeLog
74        dh_installdocs
75        dh_installexamples
76        dh_install
77        dh_installmenu
78        dh_installman debian/*.1
79        dh_icons
80        dh_link
81        dh_compress
82        dh_fixperms
83        dh_installdeb
84        dh_gencontrol
85        dh_md5sums
86        dh_builddeb
87
88binary: binary-indep binary-arch
89.PHONY: build clean binary-indep binary-arch binary install
Note: See TracBrowser for help on using the repository browser.