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)))
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)
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)
47 binary: binary-indep binary-arch
48 .PHONY: build clean binary-indep binary-arch binary