[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

distclean is not executed after building the package...



Hello Mentors,

I was thinking the "distlean:" target from the debian/rules is executed
after building the package, but it seems not, because my debian/rules is

----8<------------------------------------------------------------------
#!/usr/bin/make -f
#
# Rules for making the tdapp-defaults package
# Copyright (C) 2006 Michelle Konzack <linux4michelle@freenet.de>
#
SHELL      = /bin/bash

XTOOLS    := $(patsubst %-blackwhite,%,$(notdir $(wildcard themes/blackwhite/*-blackwhite)))

L10N      := $(filter-out C,$(patsubst %.po,%,$(notdir $(wildcard l10n/*.po))))

THEMES    := $(filter-out blackwhite,$(patsubst %.theme,%,$(notdir $(wildcard themes/*.theme))))

LANG_PO   := $(patsubst %.po,%,$(notdir $(wildcard po/*.po)))

PKGVERS   := $(shell head -n1 <debian/changelog |sed 's/.*app-defaults\ (//;s/).*//')
SRCVERS   := $(patsubst tdapp-defaults-%,%,$(notdir $(PWD)))

YEAR      := $(shell date +%Y)

RECOMMEND := xbmbrowser, xcolorsel, xfontsel, xterm, bitmap, pixmap

SUBDIRS   := . datadir l10n man po themes user

########################################################################

clean:
	dh_testdir
	dh_clean

distclean: clean distclean-make

distclean-make:
	dh_testdir
	make distclean

########################################################################

config:
	dh_testdir
	make maintainer-config
	make config

########################################################################

build: config build-make

build-make:
	dh_testdir
	make build

########################################################################

install: install-debian install-make

install-debian:
	dh_testdir
	dh_installdirs

install-make:
	dh_testdir
	make install

########################################################################

binary: binary-indep binary-arch

binary-indep: install-make
	dh_testdir
	dh_installchangelogs
	dh_installdocs	--all changelog README README.Policy TODO
	dh_installman
	dh_installmenu
	dh_install
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb
#	make distclean

binary-arch:
#  Nothing to do here

<snip>

.PHONY: clean distclean distclean-make config build build-make install install-debian install-make binary binary-indep binary-arch
----8<------------------------------------------------------------------

if I put the "make distclean" after the "dh_builddeb" I get a clean
source back...

Any ideas what is happen to me?

Oh yes, the whole package is building fine now...

Thanks, Greetings and nice Day
    Michelle Konzack


-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/6/61925193    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: