3 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
4 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
6 ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
7 CROSS=CC=$(DEB_HOST_GNU_TYPE)-gcc
13 rm -rf contrib # No license attached.
19 rm -f config.guess config.sub
21 [ ! -f Makefile ] || $(MAKE) distclean
25 config.status: configure
28 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
29 cp -f /usr/share/misc/config.sub config.sub
31 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
32 cp -f /usr/share/misc/config.guess config.guess
35 ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --enable-cluster CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
38 build-stamp: config.status
51 $(MAKE) install prefix=$(CURDIR)/debian/unfs3/usr
60 dh_installinit --update-rcd-params='defaults 25'
73 .PHONY: clean build install binary binary-arch binary-indep