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
35 build: build-arch build-indep
36 build-arch: build-stamp
37 build-indep: build-stamp
38 build-stamp: config.status
47 rm -f build-stamp config-stamp
49 [ ! -f Makefile ] || $(MAKE) distclean
60 $(MAKE) install DESTDIR=$(CURDIR)/debian/atlc
61 mv debian/atlc/usr/share/atlc/examples \
62 debian/atlc-examples/usr/share/atlc/examples
63 rm debian/atlc-examples/usr/share/atlc/examples/create_for_Makefile.am
67 binary-indep: build install
70 dh_installchangelogs -i ChangeLog
82 binary-arch: build install
85 dh_installchangelogs -a ChangeLog
87 mv debian/atlc/usr/share/atlc/docs/* debian/atlc/usr/share/doc/atlc
88 rm -rf debian/atlc/usr/share/atlc
100 binary: binary-arch binary-indep
101 .PHONY: build clean binary-indep binary-arch binary install