~ubuntu-branches/ubuntu/raring/opendrim-lmp-simpleidentitymanagement/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Guillaume BOTTEX
  • Date: 2010-06-21 15:54:00 UTC
  • Revision ID: james.westby@ubuntu.com-20100621155400-0s1303qhpc74ee00
Tags: 1.0.0-0ubuntu1
Initial release

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
INSTALL = /usr/bin/install -c
 
4
 
 
5
CONFIGURE_OPTIONS := CIMSERVER=sfcb --prefix=/usr INTEROPNAMESPACE=root/interop COMMONLIBDIR=/usr/lib/cmpi
 
6
 
 
7
DESTDIR = $(CURDIR)/debian/tmp
 
8
 
 
9
VERSION = $(shell cat ./VERSION)
 
10
 
 
11
APP_NAME = opendrim-lmp-simpleidentitymanagement
 
12
 
 
13
OPENDRIM_REG_DIR = /usr/share/OpenDRIM
 
14
OPENDRIM_MOF_DIR = /usr/share/OpenDRIM/$(APP_NAME)/mof
 
15
 
 
16
configure: configure-stamp
 
17
configure-stamp:
 
18
        dh_testdir
 
19
        autoreconf -i --force
 
20
        ./configure $(CONFIGURE_OPTIONS)
 
21
        touch configure-stamp
 
22
 
 
23
 
 
24
build: build-stamp
 
25
 
 
26
build-stamp: configure-stamp  
 
27
        dh_testdir
 
28
 
 
29
        $(MAKE)
 
30
        #docbook-to-man debian/opendrim-lmp-simpleidentitymanagement.sgml > opendrim-lmp-simpleidentitymanagement.1
 
31
 
 
32
        touch $@
 
33
 
 
34
clean: 
 
35
        dh_testdir
 
36
        dh_testroot
 
37
        rm -f build-stamp configure-stamp
 
38
 
 
39
        [ ! -f Makefile ] || $(MAKE) clean
 
40
 
 
41
        dh_clean 
 
42
 
 
43
install: build
 
44
        dh_testdir
 
45
        dh_testroot
 
46
        dh_clean -k
 
47
        dh_installdirs
 
48
 
 
49
        $(MAKE) DESTDIR=$(DESTDIR) install
 
50
        $(INSTALL) -d -m 744 $(DESTDIR)$(OPENDRIM_REG_DIR)/$(APP_NAME)/registration
 
51
        $(INSTALL) -p -m 744 registration/*.sh $(DESTDIR)$(OPENDRIM_REG_DIR)/$(APP_NAME)/registration
 
52
        $(INSTALL) -d -m 744 $(DESTDIR)$(OPENDRIM_MOF_DIR)
 
53
        $(INSTALL) -p -m 644 mof/*.mof $(DESTDIR)$(OPENDRIM_MOF_DIR)
 
54
 
 
55
# Build architecture-independent files here.
 
56
binary-indep: build install
 
57
# We have nothing to do by default.
 
58
 
 
59
# Build architecture-dependent files here.
 
60
binary-arch: build install
 
61
        dh_testdir
 
62
        dh_testroot
 
63
        dh_installchangelogs 
 
64
        dh_installdocs
 
65
        dh_installexamples
 
66
        dh_install --sourcedir=$(DESTDIR)
 
67
#       dh_installmenu
 
68
#       dh_installdebconf
 
69
#       dh_installlogrotate
 
70
#       dh_installemacsen
 
71
#       dh_installpam
 
72
#       dh_installmime
 
73
#       dh_python
 
74
#       dh_installinit
 
75
#       dh_installcron
 
76
#       dh_installinfo
 
77
        dh_installman
 
78
        dh_link
 
79
        dh_strip
 
80
        dh_compress
 
81
        dh_fixperms
 
82
#       dh_perl
 
83
#       dh_makeshlibs
 
84
        dh_installdeb
 
85
        dh_shlibdeps
 
86
        dh_gencontrol
 
87
        dh_md5sums
 
88
        dh_builddeb
 
89
 
 
90
binary: binary-indep binary-arch
 
91
.PHONY: build clean binary-indep binary-arch binary install configure