~ubuntu-branches/ubuntu/wily/openocd/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Uwe Hermann
  • Date: 2009-11-25 12:20:04 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20091125122004-4cnrzqw7v9qu064n
Tags: 0.3.1-1
* New upstream release (Closes: #554598, #537740).
* Add sh4 (instead of sh) to the list of architectures (Closes: #555553).
* Standards-Version: 3.8.3 (no changes required).
* debian/watch: Add file.
* debian/docs: Updates, some files were removed, some added.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
include /usr/share/cdbs/1/rules/simple-patchsys.mk
7
7
include /usr/share/cdbs/1/rules/utils.mk
8
8
 
9
 
# Upstream ChangeLog generated via 'LC_ALL=C svn log > ChangeLog'.
 
9
# Upstream ChangeLog generated via 'git log > ChangeLog'.
10
10
DEB_INSTALL_CHANGELOGS_ALL := debian/ChangeLog
11
11
 
12
12
# Also build PDF and HTML documentation.
39
39
DEB_CONFIGURE_EXTRA_FLAGS += --enable-gw16012 --enable-amtjtagaccel
40
40
endif
41
41
 
42
 
# We must first call ./bootstrap to generate the autotools stuff.
43
 
post-patches:: debian/stamp-autothings-update
44
 
debian/stamp-autothings-update:
45
 
        ./bootstrap
46
 
        touch $@
 
42
### # We must first call ./bootstrap to generate the autotools stuff.
 
43
### post-patches:: debian/stamp-autothings-update
 
44
### debian/stamp-autothings-update:
 
45
###     ./bootstrap
 
46
###     touch $@
47
47
 
48
48
post-patches::
49
 
        @# Make autotools scripts executable.
50
 
        chmod 755 depcomp install-sh missing configure
51
 
        chmod 755 config.guess config.sub doc/mdate-sh
 
49
        @### @# Make autotools scripts executable.
 
50
        @### chmod 755 depcomp install-sh missing configure
 
51
        @### chmod 755 config.guess config.sub doc/mdate-sh
52
52
        @# Copy udev rules file into debian/ so that dh_installudev finds it.
53
53
        cp contrib/openocd.udev debian/openocd.udev
54
54
 
55
55
binary-post-install/openocd::
56
 
        @# Give this one a better name.
57
 
        mv debian/openocd/usr/share/doc/openocd/readme.txt \
58
 
           debian/openocd/usr/share/doc/openocd/target_readme.txt
59
56
        @# Don't ship openocd.udev in /usr/share, dh_installudev handles it.
60
57
        rm -f debian/openocd/usr/share/openocd/contrib/openocd.udev
61
58
        @# Strip the RPATH of the binary.
62
59
        chrpath -d debian/openocd/usr/bin/openocd
 
60
        @# Drop /usr/share/info/dir, it's generated at runtime.
 
61
        rm -f debian/openocd/usr/share/info/dir
63
62
 
64
63
clean::
65
 
        rm -f debian/stamp-autothings-update
 
64
        @### rm -f debian/stamp-autothings-update
66
65
        @# Clean copied udev file.
67
66
        rm -f debian/openocd.udev
68
 
        @# Delete generated files, we don't want them in the diff.
69
 
        rm -f config.guess aclocal.m4 config.h.in config.sub Makefile.in
70
 
        rm -f install-sh missing depcomp configure src/Makefile.in
71
 
        rm -f src/helper/Makefile.in src/pld/Makefile.in src/jtag/Makefile.in
72
 
        rm -f src/server/Makefile.in src/target/Makefile.in
73
 
        rm -f src/xsvf/Makefile.in src/flash/Makefile.in doc/mdate-sh
74
 
        rm -f doc/texinfo.tex doc/Makefile.in doc/version.texi
75
 
        rm -f doc/stamp-vti doc/openocd.info src/svf/Makefile.in
76
 
        rm -f ltmain.sh compile
 
67
        @### @# Delete generated files, we don't want them in the diff.
 
68
        @### rm -f config.guess aclocal.m4 config.h.in config.sub Makefile.in
 
69
        @### rm -f install-sh missing depcomp configure src/Makefile.in
 
70
        @### rm -f src/helper/Makefile.in src/pld/Makefile.in src/jtag/Makefile.in
 
71
        @### rm -f src/server/Makefile.in src/target/Makefile.in
 
72
        @### rm -f src/xsvf/Makefile.in src/flash/Makefile.in doc/mdate-sh
 
73
        @### rm -f doc/texinfo.tex doc/Makefile.in doc/version.texi
 
74
        @### rm -f doc/stamp-vti doc/openocd.info src/svf/Makefile.in
 
75
        @### rm -f ltmain.sh compile
77
76
 
78
77
# For /usr/share/cdbs/1/rules/utils.mk sanity check.
79
78
common-binary-post-install-arch:: list-missing