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 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18 config.status: configure
20 cp -f /usr/share/misc/config.sub config.sub
21 cp -f /usr/share/misc/config.guess config.guess
23 --host=$(DEB_HOST_GNU_TYPE) \
24 --build=$(DEB_BUILD_GNU_TYPE) \
26 --docdir=\$${prefix}/share/doc/atlc \
27 --mandir=\$${prefix}/share/man \
28 --infodir=\$${prefix}/share/info \
29 --enable-hardware-info
31 build: build-arch build-indep
32 build-arch: build-stamp
33 build-indep: build-stamp
34 build-stamp: config.status
43 rm -f build-stamp config-stamp
45 [ ! -f Makefile ] || $(MAKE) distclean
56 $(MAKE) install DESTDIR=$(CURDIR)/debian/atlc
57 mv debian/atlc/usr/share/atlc/examples \
58 debian/atlc-examples/usr/share/atlc/examples
59 rm debian/atlc-examples/usr/share/atlc/examples/create_for_Makefile.am
63 binary-indep: build install
66 dh_installchangelogs -i ChangeLog
78 binary-arch: build install
81 dh_installchangelogs -a ChangeLog
83 mv debian/atlc/usr/share/atlc/docs/* debian/atlc/usr/share/doc/atlc
84 rm -rf debian/atlc/usr/share/atlc
96 binary: binary-arch binary-indep
97 .PHONY: build clean binary-indep binary-arch binary install