File: rules

package info (click to toggle)
omnievents 1%3A2.6.2-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,032 kB
  • sloc: cpp: 7,676; python: 3,138; sh: 2,648; xml: 2,057; java: 1,409; javascript: 551; makefile: 317; ansic: 9
file content (43 lines) | stat: -rwxr-xr-x 1,447 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make -f

DEB_FIXPERMS_EXCLUDE=omniEvents.pc
DEB_INSTALL_DOCS_omnievents-doc=doc/omnievents.docbook.css doc/*.html dox/doc/doxygen
DEB_INSTALL_MANPAGES_omnievents=doc/man/omniEvents.8 doc/man/*.1
DEB_DH_INSTALLINIT_ARGS="--name=omniorb-eventservice"
DEB_UPDATE_RCD_PARAMS_omnievents="defaults 90 10"
DOCBOOK=/usr/share/xml/docbook/stylesheet/nwalsh

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk

DEB_MAKE_CLEAN_TARGET = clean

DEB_CONFIGURE_EXTRA_FLAGS := --enable-unloadable-stubs
DEB_DH_MAKESHLIBS_ARGS := -V

build/omnievents-doc::
	mkdir -p $(CURDIR)/dox/doc/doxygen
	$(MAKE) -f meta.mk doc DOCBOOK=$(DOCBOOK)

build/omnievents::
	$(MAKE) -C src oelite
	cp etc/default/omniorb-eventservice \
	    $(CURDIR)/debian/omnievents.omniorb-eventservice.default
	cp etc/init.d/omniorb-eventservice \
	    $(CURDIR)/debian/omnievents.omniorb-eventservice.init

binary-post-install/omnievents::
	cp -f src/oelite $(CURDIR)/debian/omnievents/usr/sbin/omniEvents

binary-post-install/libomnievents2::
	cd $(CURDIR)/debian/libomnievents2/usr/lib/ && \
	    rm -f libomniEvents.so.2.6 && \
	    ln -sf libomniEvents.so.2.6.2 libomniEvents.so.2

binary-post-install/libomnievents-dev::
	rm -f $(CURDIR)/debian/libomnievents-dev/usr/include/*.h
	rm -f $(CURDIR)/debian/libomnievents-dev/usr/include/*.hh
	chmod 644 $(CURDIR)/debian/libomnievents-dev/usr/lib/pkgconfig/*.pc

clean::
	rm -Rf $(CURDIR)/dox