~ubuntu-branches/ubuntu/intrepid/devmapper/intrepid

« back to all changes in this revision

Viewing changes to dmsetup/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2008-06-02 17:22:40 UTC
  • mfrom: (1.1.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20080602172240-tb5pinmq9zxghxyb
Tags: 2:1.02.25-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - Call dmsetup from udev rules to name the device, so udev creates them
    if they do not already exist, and fill in information about the
    filesystem on the device afterwards.
    (forwarded to Debian #455746):
    + Add debian/dmsetup.udev: Naming udev rules.
    + debian/rules: Call dh_installudev to install above file.
    + debian/control: Add Recommends: dmsetup to the library and the udeb.
  - Support udev-controlled devmapper in initramfs, for consistent device
    discovery/naming during boot and hotplug:
    + Add debian/dmsetup.initramfs: Hook for copying dmsetup and udev rules
      to the initramfs.
    + debian/rules: Copy hook to build directory.
    + debian/dmsetup.install: Install above file from build directory.
    + debian/dmsetup.postinst: Call update-initramfs.
  - debian/rules: Copy po/device-mapper.po to device-mapper.pot so Rosetta
    has a POT file to import.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved.
3
 
# Copyright (C) 2004 Red Hat, Inc. All rights reserved.
 
3
# Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
4
4
#
5
5
# This file is part of the device-mapper userspace tools.
6
6
#
18
18
 
19
19
TARGETS = dmsetup
20
20
INSTALL_TYPE = install_dynamic
 
21
LIB_PTHREAD = @LIB_PTHREAD@
21
22
 
22
23
ifeq ("@STATIC_LINK@", "yes")
23
24
  TARGETS += dmsetup.static
35
36
 
36
37
dmsetup.static: $(OBJECTS) $(interfacedir)/libdevmapper.a
37
38
        $(CC) -o $@ $(OBJECTS) $(CFLAGS) $(LDFLAGS) -static \
38
 
              -L$(interfacedir) -L$(DESTDIR)/lib -ldevmapper $(LIBS)
 
39
              -L$(interfacedir) -L$(DESTDIR)/lib -ldevmapper $(LIBS) \
 
40
              $(LIB_PTHREAD)
39
41
 
40
42
install: $(INSTALL_TYPE)
41
43
 
42
44
.PHONY: install_dynamic install_static
43
45
 
44
46
install_dynamic: dmsetup
45
 
        $(INSTALL) -D $(OWNER) $(GROUP) -m 755 $(STRIP) $< $(sbindir)/$<
 
47
        $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< $(sbindir)/$<
46
48
 
47
49
install_static: dmsetup.static
48
 
        $(INSTALL) -D $(OWNER) $(GROUP) -m 755 $(STRIP) $< $(sbindir)/$<
 
50
        $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) $< $(sbindir)/$<
49
51