source: MondoRescue/trunk/mondo-doc/distributions/debian/rules@ 764

Last change on this file since 764 was 764, checked in by Bruno Cornec, 18 years ago

merge -r728:763 $SVN_M/branches/stable

  • Property svn:executable set to *
File size: 2.2 KB
Line 
1#!/usr/bin/make -f
2# -*- makefile -*-
3# Sample debian/rules that uses debhelper.
4# GNU copyright 1997 to 1999 by Joey Hess.
5
6# Uncomment this to turn on verbose mode.
7#export DH_VERBOSE=1
8
9# Define package name variable for a one-stop change.
10PACKAGE_NAME = mondo-doc
11
12# These are used for cross-compiling and for saving the configure script
13# from having to guess our platform (since we know it already)
14DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
15DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
16
17ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
18 INSTALL_PROGRAM += -s
19endif
20
21# Build both architecture dependent and independent
22build: build-indep
23
24# Build architecture independent
25build-indep:
26 $(MAKE) -f Makefile.man VERSION=VVV
27 $(MAKE) -f Makefile.howto VERSION=VVV
28 touch build-indep-stamp
29
30# Clean up
31clean:
32 dh_testdir
33 dh_testroot
34 rm -f build-arch-stamp build-indep-stamp #CONFIGURE-STAMP#
35 # Clean temporary document directory
36 rm -rf debian/doc-temp
37 # Clean up.
38 -$(MAKE) distclean
39 rm -f config.log
40ifneq "$(wildcard /usr/share/misc/config.sub)" ""
41 cp -f /usr/share/misc/config.sub config.sub
42endif
43ifneq "$(wildcard /usr/share/misc/config.guess)" ""
44 cp -f /usr/share/misc/config.guess config.guess
45endif
46
47 dh_clean
48
49# Install architecture dependent and independent
50install: install-indep
51
52# Install architecture independent
53install-indep: build-indep
54 dh_testdir
55 dh_testroot
56 dh_clean -k -i
57 $(MAKE) -f Makefile.man install INSTALLDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/share/doc/$(PACKAGE_NAME)
58 $(MAKE) -f Makefile.howto install INSTALLDIR=$(CURDIR)/debian/$(PACKAGE_NAME)/usr/share/doc/$(PACKAGE_NAME)
59
60# Must not depend on anything. This is to be called by
61# binary-arch/binary-indep
62# in another 'make' thread.
63binary-common:
64 dh_testdir
65 dh_testroot
66 dh_installchangelogs ChangeLog
67 dh_installdocs
68 dh_installman
69 dh_link
70 dh_strip
71 dh_compress
72 dh_fixperms
73 dh_installdeb
74 dh_shlibdeps
75 dh_gencontrol
76 dh_md5sums
77 dh_builddeb
78
79# Build architecture independant packages using the common target.
80binary-indep: build-indep install-indep
81 $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
82
83# Build architecture depdendent and independent packages
84binary: binary-indep
85.PHONY: clean binary
Note: See TracBrowser for help on using the repository browser.