~ubuntu-branches/ubuntu/trusty/libmtp/trusty-proposed

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-06-18 12:13:54 UTC
  • Revision ID: james.westby@ubuntu.com-20110618121354-gdrlipu2eedgxsre
Tags: 1.0.6-7
Move udev,hal files into new 'libmtp-common' package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
        debian/libmtp$(SOVERSION).preinst       \
17
17
        debian/libmtp$(SOVERSION).postinst
18
18
UDEVFILES = 20-libmtp$(SOVERSION).fdi
19
 
ifeq (linux,$(DEB_HOST_ARCH_OS))
20
 
        UDEVFILES += 45-libmtp$(SOVERSION).rules
21
 
endif
 
19
UDEVFILES += 45-libmtp.rules
22
20
DISTRIBUTION = $(shell lsb_release -i | cut -f2 -d':')
23
21
 
24
22
debdir = $(CURDIR)/debian
52
50
                        $(debdir)/libmtp$(SOVERSION)/usr/share/apport/package-hooks/ ; \
53
51
        fi
54
52
 
55
 
build/libmtp$(SOVERSION):: debian/libmtp$(SOVERSION).install
 
53
build/libmtp-common::
56
54
        # Fix mode of udev lifting script
57
55
        chmod +x libmtp.sh
58
56
        # Rename udev files
59
57
        for f in $(UDEVFILES) ; do                              \
60
58
                cp libmtp.$${f#*.} $$f ;                        \
61
59
        done
62
 
ifneq (linux,$(DEB_HOST_ARCH_OS))
63
 
        mv debian/libmtp$(SOVERSION).install debian/libmtp$(SOVERSION).install.tmp
64
 
        grep -v '/udev/' debian/libmtp$(SOVERSION).install.tmp > debian/libmtp$(SOVERSION).install
65
 
        rm debian/libmtp$(SOVERSION).install.tmp
66
 
endif
67
60
 
68
61
binary-predeb/libmtp$(SOVERSION)::
69
62
ifeq (linux,$(DEB_HOST_ARCH_OS))