3
INSTALL = /usr/bin/install -c
5
CONFIGURE_OPTIONS := CIMSERVER=sfcb --prefix=/usr INTEROPNAMESPACE=root/interop COMMONLIBDIR=/usr/lib/cmpi
7
DESTDIR = $(CURDIR)/debian/tmp
9
VERSION = $(shell cat ./VERSION)
11
APP_NAME = opendrim-lmp-simpleidentitymanagement
13
OPENDRIM_REG_DIR = /usr/share/OpenDRIM
14
OPENDRIM_MOF_DIR = /usr/share/OpenDRIM/$(APP_NAME)/mof
16
configure: configure-stamp
20
./configure $(CONFIGURE_OPTIONS)
26
build-stamp: configure-stamp
30
#docbook-to-man debian/opendrim-lmp-simpleidentitymanagement.sgml > opendrim-lmp-simpleidentitymanagement.1
37
rm -f build-stamp configure-stamp
39
[ ! -f Makefile ] || $(MAKE) clean
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)
55
# Build architecture-independent files here.
56
binary-indep: build install
57
# We have nothing to do by default.
59
# Build architecture-dependent files here.
60
binary-arch: build install
66
dh_install --sourcedir=$(DESTDIR)
90
binary: binary-indep binary-arch
91
.PHONY: build clean binary-indep binary-arch binary install configure