libamxs  0.6.0
Data Model Synchronization C API
rules
Go to the documentation of this file.
1 #!/usr/bin/make -f
2 # debian/rules for alien
3 
4 PACKAGE=$(shell dh_listpackages)
5 MACHINE = $(shell $(CC) -dumpmachine)
6 VERSION ?= $(subst $(VERSION_PREFIX)v,,$(strip $(shell git describe --tags)))
7 VERSION_PARTS = $(subst ., ,$(VERSION))
8 VMAJOR = $(word 1,$(VERSION_PARTS))
9 VMINOR = $(word 2,$(VERSION_PARTS))
10 VBUiLD_FULL = $(word 3,$(VERSION_PARTS))
11 VBUILD = $(word 1,$(subst -, ,$(VBUILD_FULL)))
12 
13 build:
14  dh_testdir
15 
16 clean:
17  dh_testdir
18  dh_testroot
19  dh_clean -d
20 
21 binary-indep: build
22 
23 binary-arch: build
24  dh_testdir
25  dh_testroot
26  dh_prep
27  dh_installdirs
28 
29  dh_installdocs
30  dh_installchangelogs
31 
32 # Copy the packages's files.
33  find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
34  xargs -0 -r -i cp -a {} debian/$(PACKAGE)
35 
36  dh_link usr/lib/$(MACHINE)/libamxs.so.$(VERSION) usr/lib/$(MACHINE)/libamxs.so
37  dh_link usr/lib/$(MACHINE)/libamxs.so.$(VERSION) usr/lib/$(MACHINE)/libamxs.so.$(VMAJOR)
38  dh_compress
39  dh_fixperms
40  dh_makeshlibs
41  dh_installdeb
42  -dh_shlibdeps
43  dh_gencontrol
44  dh_md5sums
45  dh_builddeb
46 
47 binary: binary-indep binary-arch
48 .PHONY: build clean binary-indep binary-arch binary