source: subversion/applications/editors/josm/debian/rules @ 15969

Last change on this file since 15969 was 15969, checked in by joerg, 11 years ago

Do not automatically cleanup before building a debian package

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1#!/usr/bin/make -f
2# Sample debian/rules that uses debhelper.
3# GNU copyright 1997 to 1999 by Joey Hess.
4
5# Uncomment this to turn on verbose mode.
6export DH_VERBOSE=1
7
8# This is the debhelper compatability version to use.
9#export DH_COMPAT=5
10export destdir = $(CURDIR)/debian/openstreetmap-josm
11
12
13build: build-stamp
14build-stamp: 
15        dh_testdir
16
17        # Add here commands to compile the package.
18        # $(MAKE)
19
20        touch build-stamp
21
22clean:
23        dh_testdir
24        dh_testroot
25        rm -f build-stamp
26        rm -f dist/*.jar
27        rm -f debian/files
28
29        # Add here commands to clean up after the build process.
30        -$(MAKE) distclean
31        for dir in `ls plugins/*/build.xml | sed s,/build.xml,,`; do \
32            echo "-------- Cleanup Plugin '$$dir'"; \
33            cd $$dir; \
34            rm -f dist/*.jar; \
35            rm -f ../../dist/$dir.jar; \
36            rm -f *.log; \
37            ant -q clean; \
38            cd ../..; \
39        done
40        cd core;   ant -q clean
41        dh_clean
42
43install: build
44        dh_testdir
45        dh_testroot
46        dh_installdirs
47
48#       ./debian/update_svn_revision.sh
49        bash ./debian/make_install_files.sh --dest-path=${destdir} --no-clean || exit -1
50        # Install done
51
52# Build architecture-independent files here.
53binary-indep: build install
54        dh_testdir
55        dh_testroot
56        dh_installchangelogs
57        dh_installdebconf
58#       dh_installdocs
59#       dh_installexamples
60        dh_installmenu
61#       dh_installlogrotate
62#       dh_installemacsen
63#       dh_installpam
64#       dh_installmime
65#       dh_python
66#       dh_installinit
67#       dh_installcron
68#       dh_installinfo
69#       dh_installman
70#       dh_link
71        dh_strip
72        dh_compress
73        dh_fixperms
74#       dh_perl
75        dh_installdeb
76        dh_gencontrol
77        dh_md5sums
78        dh_builddeb
79
80# Build architecture-dependent files here.
81binary-arch: build install
82# We have nothing to do by default.
83
84binary: binary-arch binary-indep
85.PHONY: build clean binary-indep binary-arch binary install  install-indep install-arch
Note: See TracBrowser for help on using the repository browser.