~ubuntu-branches/ubuntu/raring/micro-httpd/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jari Aalto
  • Date: 2009-12-19 16:41:06 UTC
  • mfrom: (5.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20091219164106-xlsihmdp8gry9zuk
Tags: 20051212-12
* Move to format: 3.0 (quilt).
* debian/clean
  - Move content from debian/rules for dh(1).
* debian/control
  - (Build-Depends): Remove dpatch.
  - (Depends): add ${misc:Depends} for debhelper.
  - (Standards-Version): update to 3.8.3.
  - (Section) [source]: Correct to httpd.
  - (Section) [binary]: Remove duplicate header (lintian).
* debian/copyright
  - Use FSF URL (FSF recommendation).
* debian/micro-httpd.8.pod
  - Add copyright.
* debian/micro-httpd.manpages
  - Move content from debian/rules for dh(1).
* debian/README.source
  - Delete, obsoleted by format 3.0.
* debian/patches
  - Convert to quilt.
* debian/rules
  - Remove dpatch.
  - Remove rules obsoleted by dh(1).
* debian/source/format
  - New file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
MANSECT = 8
7
7
MANSRC  = debian
8
 
MK_MAN  = pod2man.mk
9
8
 
10
9
include debian/debian-vars.mk
11
 
include /usr/share/dpatch/dpatch.make
12
10
 
13
11
man:
14
 
        # convert *.pod to manual page
15
 
        $(MAKE) -C $(MANSRC) -f $(MK_MAN) PACKAGE=$(PACKAGE) \
 
12
        # target: man -- convert *.pod to manual page
 
13
        $(MAKE) -C $(MANSRC) -f pod2man.mk PACKAGE=$(PACKAGE) \
16
14
        MANSECT=$(MANSECT) makeman
17
15
 
18
 
build-stamp: patch-stamp
19
 
        dh_testdir
20
 
 
21
 
        # Building package
22
 
        CFLAGS="$(CFLAGS)" $(MAKE) $(MAKE_FLAGS)
23
 
 
24
 
        touch build-stamp
25
 
 
26
 
build: build-stamp man
27
 
 
28
 
clean: unpatch
29
 
        dh_testdir
30
 
        dh_testroot
31
 
        rm -f build-stamp
32
 
 
33
 
        # Cleaning package
34
 
        [ ! -f Makefile ] || $(MAKE) clean
35
 
 
36
 
        dh_clean
37
 
 
38
 
install: build
 
16
install: build man
 
17
        # target: install
39
18
        dh_testdir
40
19
        dh_testroot
41
20
        dh_prep
53
32
        rm -f $(MAN8DIR)/*
54
33
        $(INSTALL_DATA) $(MANSRC)/*.8 $(MAN8DIR)
55
34
 
56
 
binary-indep: build install
57
 
 
58
35
binary-arch: build install
 
36
        # target: binary-arch
59
37
        dh_testdir
60
38
        dh_testroot
61
39
        dh_installchangelogs
62
 
        dh_installdocs debian/NEWS.Debian debian/README*
 
40
        dh_installdocs
63
41
        dh_install
64
 
        dh_installman debian/*.$(MANSECT)
 
42
        dh_installman
65
43
        dh_link
66
44
        dh_strip
67
45
        dh_compress
73
51
        dh_builddeb
74
52
 
75
53
binary: binary-indep binary-arch
76
 
.PHONY: build clean binary-indep binary-arch binary install man
 
54
 
 
55
%:
 
56
        dh $@
 
57
 
 
58
.PHONY: install man
 
59
.PHONY: binary-indep binary-arch binary
 
60
 
 
61
# End of file