monotone

monotone Mtn Source Tree

Root/debian/rules

1#!/usr/bin/make -f
2# Sample debian/rules that uses debhelper.
3# GNU copyright 1997 to 1999 by Joey Hess.
4
5# Uncomment this to turn on verbose mode.
6#export DH_VERBOSE=1
7
8
9# These are used for cross-compiling and for saving the configure script
10# from having to guess our platform (since we know it already)
11DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
12DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
13
14
15CFLAGS = -Wall -g
16
17ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
18CFLAGS += -O0
19else
20CFLAGS += -O2
21endif
22ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
23INSTALL_PROGRAM += -s
24endif
25
26config.status: configure
27dh_testdir
28# Add here commands to configure the package.
29./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
30
31
32build: build-stamp
33
34build-stamp: config.status
35dh_testdir
36
37# Add here commands to compile the package.
38$(MAKE)
39#/usr/bin/docbook-to-man debian/monotone.sgml > monotone.1
40
41touch build-stamp
42
43clean:
44dh_testdir
45dh_testroot
46rm -f build-stamp
47
48# Add here commands to clean up after the build process.
49-$(MAKE) distclean
50ifneq "$(wildcard /usr/share/misc/config.sub)" ""
51cp -f /usr/share/misc/config.sub config.sub
52endif
53ifneq "$(wildcard /usr/share/misc/config.guess)" ""
54cp -f /usr/share/misc/config.guess config.guess
55endif
56
57
58dh_clean
59
60install: build
61dh_testdir
62dh_testroot
63dh_clean -k
64dh_installdirs
65
66# Add here commands to install the package into debian/monotone.
67$(MAKE) install DESTDIR=$(CURDIR)/debian/monotone
68
69
70# Build architecture-independent files here.
71binary-indep: build install
72# We have nothing to do by default.
73
74# Build architecture-dependent files here.
75binary-arch: build install
76dh_testdir
77dh_testroot
78dh_installchangelogs ChangeLog
79dh_installdocs
80dh_installexamples
81#dh_install
82#dh_installmenu
83#dh_installdebconf
84#dh_installlogrotate
85#dh_installemacsen
86#dh_installpam
87#dh_installmime
88#dh_installinit
89#dh_installcron
90#dh_installinfo
91dh_installman
92dh_link
93dh_strip
94dh_compress
95dh_fixperms
96#dh_perl
97#dh_python
98#dh_makeshlibs
99dh_installdeb
100dh_shlibdeps
101dh_gencontrol
102dh_md5sums
103dh_builddeb
104
105binary: binary-indep binary-arch
106.PHONY: build clean binary-indep binary-arch binary install

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status