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 configure
: configure-stamp
19 build
: build-arch build-indep
20 build-arch
: build-arch-stamp
21 build-arch-stamp
: configure-stamp
25 build-indep
: build-indep-stamp
26 build-indep-stamp
: configure-stamp
35 install: install-indep install-arch
43 # Add generated Build ID and Debian version to version output
44 sed
-e
's/BuildID=git/BuildID=${BUILDID}/;s/^Version=\(.*\)$$/Version=\1 (Debian-${DEBIAN_VERSION})/' \
45 -i
$(USC
)/application.ini
47 # Use Debian version for M-x version output
48 sed
-e
's/Version=\(.*\)/Version=\1 (Debian-${DEBIAN_VERSION})/' \
49 -i
$(USC
)/components
/application.js
59 # Must not depend on anything. This is to be called by
60 # binary-arch/binary-indep in another 'make' thread.
83 # Build architecture independant packages using the common target.
84 binary-indep
: build-indep install-indep
85 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
87 # Build architecture dependant packages using the common target.
88 binary-arch
: build-arch install-arch
89 $(MAKE
) -f debian
/rules DH_OPTIONS
=-s binary-common
91 binary
: binary-arch binary-indep
92 .PHONY
: build
clean binary-indep binary-arch binary
install install-indep install-arch configure