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/'`)
11 BUILDID
:= $(shell echo
-n
`whoami`@
`hostname`)_
$(shell date
+%s
)
12 USC
= $(CURDIR
)/debian
/conkeror
/usr
/share
/conkeror
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
46 # Add generated Build ID and Debian version to version output
47 sed
-e
's/BuildID=git/BuildID=${BUILDID}/;s/^Version=\(.*\)$$/Version=\1 (Debian-${DEBIAN_VERSION})/' \
48 -i
$(USC
)/application.ini
50 # Use Debian version for M-x version output
51 sed
-e
's/Version=\(.*\)/Version=\1 (Debian-${DEBIAN_VERSION})/' \
52 -i
$(USC
)/components
/application.js
62 # Must not depend on anything. This is to be called by
63 # binary-arch/binary-indep in another 'make' thread.
86 # Build architecture independant packages using the common target.
87 binary-indep
: build-indep install-indep
88 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
90 # Build architecture dependant packages using the common target.
91 binary-arch
: build-arch install-arch
92 $(MAKE
) -f debian
/rules DH_OPTIONS
=-s binary-common
94 binary
: binary-arch binary-indep
95 .PHONY
: build
clean binary-indep binary-arch binary
install install-indep install-arch configure