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 UPSTREAM_VERSION
:= $(shell grep ^Version
= application.ini | sed
-e
's/^Version=//')
11 DEBIAN_VERSION
:= $(shell echo
-n
`head -1 debian/changelog | sed -e 's/^.*(\(.*\)).*$$/\\1/'`)
13 BUILDID
:= $(shell echo
-n
`whoami`@
`hostname`)_
$(shell date
+%s
)
15 include /usr
/share
/quilt
/quilt.make
17 configure
: configure-stamp
18 configure-stamp
: $(QUILT_STAMPFN
)
20 # Add here commands to configure the package.
25 build
: build-arch build-indep
27 build-arch
: build-arch-stamp
28 build-arch-stamp
: configure-stamp
29 # Add here commands to compile the arch part of the package.
34 build-indep
: build-indep-stamp
35 build-indep-stamp
: configure-stamp
36 # Add here commands to compile the indep part of the package.
44 rm -f build-arch-stamp build-indep-stamp configure-stamp
46 # Add here commands to clean up after the build process.
51 install: install-indep install-arch
59 # Add here commands to install the indep part of the package into
61 cp
-pr branding chrome components content contrib defaults \
62 locale modules search-engines help style \
63 $(CURDIR
)/debian
/conkeror
/usr
/share
/conkeror
/
64 # Add generated Build ID and Debian version to version output
65 sed
-e
's/BuildID=git/BuildID=${BUILDID}/;s/^Version=\(.*\)$$/Version=\1 (Debian-${DEBIAN_VERSION})/' application.ini \
66 > $(CURDIR
)/debian
/conkeror
/usr
/share
/conkeror
/application.ini
67 # Use Debian version for M-x version output
68 sed
-e
's/\$$CONKEROR_VERSION\$$/${UPSTREAM_VERSION} (Debian-${DEBIAN_VERSION})/' components
/application.js \
69 > $(CURDIR
)/debian
/conkeror
/usr
/share
/conkeror
/components
/application.js
70 cp
-p debian
/conkeror.bin
$(CURDIR
)/debian
/conkeror
/usr
/bin
/conkeror
71 cp
-p debian
/conkeror.desktop
$(CURDIR
)/debian
/conkeror
/usr
/share
/applications
/
80 # Add here commands to install the arch part of the package into
82 cp
-p conkeror-spawn-helper
$(CURDIR
)/debian
/conkeror-spawn-process-helper
/usr
/lib
/conkeror
/
83 ln
-s
/usr
/lib
/conkeror
/conkeror-spawn-helper
$(CURDIR
)/debian
/conkeror-spawn-process-helper
/usr
/share
/conkeror
/
87 # Must not depend on anything. This is to be called by
88 # binary-arch/binary-indep in another 'make' thread.
109 # Build architecture independant packages using the common target.
110 binary-indep
: build-indep install-indep
111 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
113 # Build architecture dependant packages using the common target.
114 binary-arch
: build-arch install-arch
115 $(MAKE
) -f debian
/rules DH_OPTIONS
=-s binary-common
117 binary
: binary-arch binary-indep
118 .PHONY
: build
clean binary-indep binary-arch binary
install install-indep install-arch configure