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 --docdir=\$${prefix}/share/doc/atlc \
32 --mandir=\$${prefix}/share/man \
33 --infodir=\$${prefix}/share/info \
34 --enable-hardware-info
36 build: build-arch build-indep
37 build-arch: build-stamp
38 build-indep: build-stamp
39 build-stamp: config.status
48 rm -f build-stamp config-stamp
50 [ ! -f Makefile ] || $(MAKE) distclean
61 $(MAKE) install DESTDIR=$(CURDIR)/debian/atlc
62 mv debian/atlc/usr/share/atlc/examples \
63 debian/atlc-examples/usr/share/atlc/examples
64 rm debian/atlc-examples/usr/share/atlc/examples/create_for_Makefile.am
68 binary-indep: build install
71 dh_installchangelogs -i ChangeLog
83 binary-arch: build install
86 dh_installchangelogs -a ChangeLog
88 mv debian/atlc/usr/share/atlc/docs/* debian/atlc/usr/share/doc/atlc
89 rm -rf debian/atlc/usr/share/atlc
101 binary: binary-arch binary-indep
102 .PHONY: build clean binary-indep binary-arch binary install