Use --fail-missing for dh_install.
[debian/lxappearance.git] / debian / rules
CommitLineData
cdcfa62a 1#!/usr/bin/make -f
3d279222
AL
2# -*- mode: makefile; coding: utf-8 -*-
3# Copyright (C) 2009-2010 Andrew Lee (李健秋) <ajqlee@debian.org>
4# Description: Main Debian packaging script for morituri
5#
6# This program is free software; you can redistribute it and/or
7# modify it under the terms of the GNU General Public License as
8# published by the Free Software Foundation; either version 2, or (at
9# your option) any later version.
10#
11# This program is distributed in the hope that it will be useful, but
12# WITHOUT ANY WARRANTY; without even the implied warranty of
13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14# General Public License for more details.
15#
16# You should have received a copy of the GNU General Public License
17# along with this program. If not, see <http://www.gnu.org/licenses/>.
18# Uncomment this to turn on verbose mode.
cdcfa62a
AL
19
20# Uncomment this to turn on verbose mode.
21#export DH_VERBOSE=1
22
279f0912
JL
23DISTRO = "$(shell lsb_release -si)"
24
3d279222 25%:
096f31d3 26 dh $@
cdcfa62a 27
3d279222 28override_dh_auto_configure:
096f31d3
AL
29 /usr/bin/autoreconf -fiv
30 dh_auto_configure -- --enable-man
cdcfa62a 31
3d279222 32override_dh_auto_clean:
096f31d3
AL
33 rm -f man/lxpanel.1 man/lxpanelctl.1
34 dh_auto_clean
cdcfa62a 35
279f0912 36override_dh_install:
9ea06396 37 dh_install --fail-missing
279f0912
JL
38 #Install apport hook only on Ubuntu
39ifeq ($(DISTRO),"Ubuntu")
40 dh_install -plxappearance debian/apport/source_lxappearance.py usr/share/apport/package-hooks
41endif
42
3d279222 43override_dh_auto_test:
096f31d3 44 :
9ea06396 45
a92f9f6f
JL
46override_dh_strip:
47 dh_strip --dbg-package=lxappearance-dbg