2 # debian/rules for alien
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)))
24 echo $(VERSION_PREFIX)
33 # Copy the packages's files.
34 find . -maxdepth 1 -mindepth 1 -not -name debian -print0 | \
35 xargs -0 -r -i cp -a {} debian/$(PACKAGE)
37 dh_link usr/lib/$(MACHINE)/libamxrt.so.$(VERSION) usr/lib/$(MACHINE)/libamxrt.so
38 dh_link usr/lib/$(MACHINE)/libamxrt.so.$(VERSION) usr/lib/$(MACHINE)/libamxrt.so.$(VMAJOR)
43 -dh_shlibdeps -Llibyajl.so.2
48 binary: binary-indep binary-arch
49 .PHONY: build clean binary-indep binary-arch binary