~ubuntu-branches/ubuntu/wily/csstidy/wily

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Kevin Coyner
  • Date: 2008-02-24 20:52:52 UTC
  • mfrom: (2.1.1 hardy)
  • Revision ID: james.westby@ubuntu.com-20080224205252-i9t0wyrnjeedczz2
Tags: 1.4-3
* Add patch gcc43fix which contains an uncaught missing include in
  csstidy/misc.cpp. Closes: #455123.
* Bumped Standards-Version to 3.7.3. No changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
# Uncomment this to turn on verbose mode.
4
4
#export DH_VERBOSE=1
5
5
 
6
 
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
 
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
 
 
9
 
CFLAGS = -Wall -g
10
 
 
11
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
12
 
        CFLAGS += -O0
13
 
else
14
 
        CFLAGS += -O2
15
 
endif
16
 
 
17
 
config.status: patch configure
18
 
        dh_testdir
19
 
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \
20
 
                --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \
21
 
                --mandir=\$${prefix}/share/man
22
 
 
23
 
build: build-stamp
24
 
 
25
 
build-stamp: config.status
26
 
        dh_testdir
27
 
 
28
 
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
29
 
        cp -f /usr/share/misc/config.sub config.sub
30
 
endif
31
 
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
32
 
        cp -f /usr/share/misc/config.guess config.guess
33
 
endif
34
 
 
35
 
        $(MAKE)
 
6
build: patch build-stamp
 
7
build-stamp:
 
8
        dh_testdir
36
9
        touch $@
37
10
 
38
11
clean: clean-patched unpatch
41
14
        dh_testdir
42
15
        dh_testroot
43
16
        rm -f build-stamp install-stamp
44
 
        [ ! -f Makefile ] || $(MAKE) clean
45
 
        [ ! -f Makefile ] || $(MAKE) distclean
46
 
        find \( -name config.sub -o -name config.guess \) -print0 | xargs -0 -r rm -f \;
 
17
        -rm -fr release/
 
18
        -rm -f .sconsign.dblite
47
19
        dh_clean
48
20
 
49
21
patch: patch-stamp
50
 
 
51
22
patch-stamp:
52
23
        dpatch apply-all
53
 
        chmod 0755 configure
54
 
        dpatch cat-all > patch-stamp
 
24
        dpatch cat-all >patch-stamp
55
25
 
56
26
unpatch:
57
27
        dpatch deapply-all
58
 
        rm -rf patch-stamp debian/patched aclocal.m4 configure configure.in install-sh \
59
 
                Makefile.am Makefile.in missing mkinstalldirs
 
28
        rm -rf patch-stamp debian/patched
60
29
 
61
30
install: build
62
31
        dh_testdir
63
32
        dh_testroot
64
33
        dh_clean -k
65
 
        dh_installdirs
66
 
        $(MAKE) DESTDIR=$(CURDIR)/debian/csstidy install
67
 
        install -D -m 644 csstidy.layout debian/csstidy/usr/share/csstidy/csstidy.layout
 
34
        scons
 
35
        install -D release/csstidy/csstidy debian/csstidy/usr/bin/csstidy
68
36
        touch install-stamp
69
37
 
70
38
# Build architecture-independent files here.
89
57
        dh_builddeb
90
58
 
91
59
binary: binary-indep binary-arch
92
 
.PHONY: build build-stamp clean binary-indep binary-arch binary install clean-patched patch unpatch patch-stamp
 
60
.PHONY: build build-stamp clean binary-indep binary-arch binary install patch unpatch clean-patched