~ubuntu-branches/ubuntu/karmic/potracegui/karmic

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Wegscheider
  • Date: 2005-04-30 23:04:34 UTC
  • Revision ID: james.westby@ubuntu.com-20050430230434-avvh88fw26k8xglk
Tags: 1.3-2
* Urgency medium, cause without this fix package is almost unusable
  for people using German locale.
* Closes: #303718: translated text is passed as option to potrace

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# -*- makefile -*-
 
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)
 
11
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
12
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
13
 
 
14
 
 
15
CFLAGS = -Wall -g
 
16
 
 
17
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -O0
 
19
else
 
20
        CFLAGS += -O2
 
21
endif
 
22
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
23
        INSTALL_PROGRAM += -s
 
24
endif
 
25
 
 
26
config.status: configure
 
27
        dh_testdir
 
28
        CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info --disable-rpath
 
29
 
 
30
 
 
31
build: build-stamp
 
32
 
 
33
build-stamp:  config.status
 
34
        dh_testdir
 
35
        $(MAKE)
 
36
 
 
37
        touch build-stamp
 
38
 
 
39
clean:
 
40
        dh_testdir
 
41
        dh_testroot
 
42
        rm -f build-stamp 
 
43
 
 
44
        -$(MAKE) distclean
 
45
ifneq "$(wildcard /usr/share/misc/config.sub)" ""
 
46
        cp -f /usr/share/misc/config.sub config.sub
 
47
endif
 
48
ifneq "$(wildcard /usr/share/misc/config.guess)" ""
 
49
        cp -f /usr/share/misc/config.guess config.guess
 
50
endif
 
51
        
 
52
        rm -f po/*.gmo
 
53
 
 
54
 
 
55
        dh_clean  --exclude ./src/potracegui.cpp.orig
 
56
 
 
57
install: build
 
58
        dh_testdir
 
59
        dh_testroot
 
60
        dh_clean -k  --exclude ./src/potracegui.cpp.orig
 
61
        dh_installdirs
 
62
 
 
63
        $(MAKE) install DESTDIR=$(CURDIR)/debian/potracegui
 
64
        mv $(CURDIR)/debian/potracegui/usr/share/doc/HTML/ $(CURDIR)/debian/potracegui/usr/share/doc/kde/HTML/
 
65
        mv $(CURDIR)/debian/potracegui/usr/share/applnk/Utilities/potracegui.desktop $(CURDIR)/debian/potracegui/usr/share/applnk/Graphics/
 
66
        rmdir $(CURDIR)/debian/potracegui/usr/share/applnk/Utilities
 
67
 
 
68
binary-indep: build install
 
69
 
 
70
binary-arch: build install
 
71
        dh_testdir
 
72
        dh_testroot
 
73
        dh_installchangelogs ChangeLog
 
74
        dh_installdocs
 
75
        dh_installmenu
 
76
        dh_installman debian/potracegui.1
 
77
        dh_link
 
78
        dh_strip
 
79
        dh_compress -X.docbook
 
80
        dh_fixperms
 
81
        dh_installdeb
 
82
        dh_shlibdeps
 
83
        dh_gencontrol
 
84
        dh_md5sums
 
85
        dh_builddeb
 
86
 
 
87
binary: binary-indep binary-arch
 
88
.PHONY: build clean binary-indep binary-arch binary install