~ubuntu-branches/ubuntu/lucid/konversation/lucid-updates

« back to all changes in this revision

Viewing changes to debian/debhelper/kde.mk

  • Committer: Bazaar Package Importer
  • Author(s): Modestas Vainius
  • Date: 2009-05-15 11:24:24 UTC
  • mfrom: (1.15.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 47.
  • Revision ID: james.westby@ubuntu.com-20090515112424-b74i26lciabf4qnk
Tags: 1.1.75+svn968012-1
* New upstream development snapshot:
  - Last Changed Author: hein
  - Last Changed Rev: 968012
  - Last Changed Date: 2009-05-14 21:03:55 +0300
* Update README.source.
* Use dh --quilt instead of custom patch handling, build depend on
  quilt 0.46-7~.
* Update patches to upstream changes.
* Update konversation.install: remove docs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Using quilt patch system
2
 
include /usr/share/quilt/quilt.make
3
 
 
4
1
# Include default KDE 4 cmake configuration variables
5
2
include /usr/share/pkg-kde-tools/makefiles/1/variables.mk
6
3
 
7
4
# CMake module
8
5
include debian/debhelper/cmake.mk
9
6
 
 
7
DH ?= dh
 
8
 
10
9
# CMake configuration flags
11
10
DEB_CMAKE_KDE_DEFAULT_FLAGS = $(DEB_CMAKE_KDE4_FLAGS) $(DEB_CMAKE_CUSTOM_FLAGS)
12
11
CMAKE_ARGS = $(DEB_CMAKE_KDE_DEFAULT_FLAGS)
57
56
$(DEB_KDE_OVERRIDE_DH_AUTO_INSTALL): cmake_install
58
57
.PHONY: $(DEB_KDE_OVERRIDE_DH_AUTO_INSTALL)
59
58
 
 
59
DEB_KDE_OVERRIDE_DH_AUTO_CLEAN ?= override_dh_auto_clean
 
60
$(DEB_KDE_OVERRIDE_DH_AUTO_CLEAN): cmake_clean
 
61
.PHONY: $(DEB_KDE_OVERRIDE_DH_AUTO_CLEAN)
 
62
 
60
63
# dh_strip override - automatic -dbg package
61
64
DEB_DBG_PACKAGE_NAME ?= $(DEB_SOURCE_PACKAGE)-dbg
62
65
ifeq ($(DEB_DBG_PACKAGE_NAME),$(filter $(DEB_DBG_PACKAGE_NAME),$(shell dh_listpackages -s)))
67
70
 
68
71
endif
69
72
 
70
 
# Clean rule is more complex. Cleaning should be done
71
 
# before unpatching.
72
 
clean_before_unpatch: cmake_clean
73
 
        dh clean
74
 
 
75
 
unpatch: clean_before_unpatch
76
 
 
77
 
kde/clean: unpatch
78
 
 
79
73
# Required relationship between default targets
80
74
$(filter-out build clean,$(DEB_ALL_DEFAULT_TARGETS)): build
81
75
 
82
 
kde/build: patch
83
 
 
84
76
# Default implementation (DH) of default targets.
85
 
# Exclude clean as we have a specific target for it
86
 
$(filter-out kde/clean,$(KDE_ALL_DEFAULT_TARGETS)):
87
 
        dh $(subst kde/,,$@)
 
77
$(KDE_ALL_DEFAULT_TARGETS):
 
78
        $(DH) $(subst kde/,,$@)
88
79
 
89
80
# An implicit rule which runs default kde/ targets
90
81
# It can be easily overriden.
91
82
%: kde/%
92
83
        
93
84
 
94
 
.PHONY: $(KDE_ALL_DEFAULT_TARGETS) clean_before_unpatch
 
85
.PHONY: $(KDE_ALL_DEFAULT_TARGETS)