3 # This has to be exported to make some magic below work.
6 # These are used for cross-compiling and for saving the configure script
7 # from having to guess our platform (since we know it already)
8 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
9 DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
14 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
19 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23 config.status: configure
26 --host=$(DEB_HOST_GNU_TYPE) \
27 --build=$(DEB_BUILD_GNU_TYPE) \
29 --mandir=\$${prefix}/share/man \
30 --infodir=\$${prefix}/share/info \
31 --enable-hardware-info
34 build-stamp: config.status
43 rm -f build-stamp config-stamp
48 ifneq "$(wildcard /usr/share/misc/config.sub)" ""
49 cp -f /usr/share/misc/config.sub config.sub
51 ifneq "$(wildcard /usr/share/misc/config.guess)" ""
52 cp -f /usr/share/misc/config.guess config.guess
63 $(MAKE) install DESTDIR=$(CURDIR)/debian/atlc
64 mv debian/atlc/usr/share/atlc/examples \
65 debian/atlc-examples/usr/share/atlc/examples
66 rm debian/atlc-examples/usr/share/atlc/examples/create_for_Makefile.am
70 binary-indep: build install
73 dh_installchangelogs -i ChangeLog
85 binary-arch: build install
88 dh_installchangelogs -a ChangeLog
90 mv debian/atlc/usr/share/atlc/docs/* debian/atlc/usr/share/doc/atlc
91 rm -rf debian/atlc/usr/share/atlc
103 binary: binary-arch binary-indep
104 .PHONY: build clean binary-indep binary-arch binary install