3 # Uncomment this to turn on verbose mode.
6 # This has to be exported to make some magic below work.
9 # Generating a xulrunner build id and other strings
10 DEBIAN_VERSION
:= $(shell echo
-n
`head -1 debian/changelog | sed -e 's/^.*(\(.*\)).*$$/\\1/'`)
12 BUILDID
:= $(shell echo
-n
`whoami`@
`hostname`)_
$(shell date
+%s
)
14 DPKG_EXPORT_BUILDFLAGS
= 1
15 include /usr
/share
/dpkg
/buildflags.mk
17 configure
: configure-stamp
22 build
: build-arch build-indep
23 build-arch
: build-arch-stamp
24 build-arch-stamp
: configure-stamp
28 build-indep
: build-indep-stamp
29 build-indep-stamp
: configure-stamp
38 install: install-indep install-arch
45 # Add generated Build ID and Debian version to version output
46 sed
-e
's/BuildID=git/BuildID=${BUILDID}/;s/^Version=\(.*\)$$/Version=\1 (Debian-${DEBIAN_VERSION})/' application.ini \
47 > $(CURDIR
)/debian
/conkeror
/usr
/share
/conkeror
/application.ini
49 # Use Debian version for M-x version output
50 sed
-e
's/Version=\(.*\)/Version=\1 (Debian-${DEBIAN_VERSION})/' components
/application.js \
51 > $(CURDIR
)/debian
/conkeror
/usr
/share
/conkeror
/components
/application.js
63 # Must not depend on anything. This is to be called by
64 # binary-arch/binary-indep in another 'make' thread.
87 # Build architecture independant packages using the common target.
88 binary-indep
: build-indep install-indep
89 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
91 # Build architecture dependant packages using the common target.
92 binary-arch
: build-arch install-arch
93 $(MAKE
) -f debian
/rules DH_OPTIONS
=-s binary-common
95 binary
: binary-arch binary-indep
96 .PHONY
: build
clean binary-indep binary-arch binary
install install-indep install-arch configure