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
25 cp -f /usr/share/misc/config.sub config.sub
26 cp -f /usr/share/misc/config.guess config.guess
28 --host=$(DEB_HOST_GNU_TYPE) \
29 --build=$(DEB_BUILD_GNU_TYPE) \
31 --mandir=\$${prefix}/share/man \
32 --infodir=\$${prefix}/share/info \
33 --enable-hardware-info
36 build-stamp: config.status
45 rm -f build-stamp config-stamp
58 $(MAKE) install DESTDIR=$(CURDIR)/debian/atlc
59 mv debian/atlc/usr/share/atlc/examples \
60 debian/atlc-examples/usr/share/atlc/examples
61 rm debian/atlc-examples/usr/share/atlc/examples/create_for_Makefile.am
65 binary-indep: build install
68 dh_installchangelogs -i ChangeLog
80 binary-arch: build install
83 dh_installchangelogs -a ChangeLog
85 mv debian/atlc/usr/share/atlc/docs/* debian/atlc/usr/share/doc/atlc
86 rm -rf debian/atlc/usr/share/atlc
98 binary: binary-arch binary-indep
99 .PHONY: build clean binary-indep binary-arch binary install