3 # Sample debian/rules that uses debhelper.
4 # This file was originally written by Joey Hess and Craig Small.
5 # As a special exception, when this file is copied by dh-make into a
6 # dh-make output file, you may use that output file without restriction.
7 # This special exception was added by Craig Small in version 0.37 of dh-make.
9 # Uncomment this to turn on verbose mode.
13 # These are used for cross-compiling and for saving the configure script
14 # from having to guess our platform (since we know it already)
15 DEB_HOST_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_HOST_GNU_TYPE
)
16 DEB_BUILD_GNU_TYPE ?
= $(shell dpkg-architecture
-qDEB_BUILD_GNU_TYPE
)
19 DESTDIR
= $(CURDIR
)/debian
/k8jam
22 #ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
28 # GNU89INLINE = -fgnu89-inline
29 ifneq (,$(findstring thumb
,$(DEB_BUILD_OPTIONS
)))
30 GNU89INLINE
= MAEMO47
=1 USE_THUMB
=1
33 ifneq (,$(findstring k8maemo47
,$(DEB_BUILD_OPTIONS
)))
34 GNU89INLINE
= MAEMO47
=1
43 configure
: configure-stamp
46 sh
$(CURDIR
)/0build.sh
47 $(CURDIR
)/bin.unix
/jam configure
--prefix=/usr
52 build-stamp
: configure-stamp
54 # Add here commands to configure the package.
55 $(CURDIR
)/bin.unix
/jam
-a
$(GNU89INLINE
) OPT
=$(XOPT
)
62 rm -f configure-stamp build-stamp
64 # Add here commands to clean up after the build process.
65 rm -f build-stamp configure-stamp || true
66 rm -f Jamrules.auto.configure || true
67 #$(CURDIR)/bin.unix/jam distclean || true
68 rm -rf
$(DESTDIR
) || true
78 # Add here commands to install the package into $(DESTDIR)
79 DESTDIR
=$(DESTDIR
) $(CURDIR
)/bin.unix
/jam
install
82 # Build architecture-independent files here.
83 binary-indep
: build
install
84 # We have nothing to do by default.
86 # Build architecture-dependent files here.
87 binary-arch
: build
install
118 binary
: binary-indep binary-arch
119 .PHONY
: build
clean binary-indep binary-arch binary
install