Le 04/01/2017 à 19:20, Patrick Schleizer a écrit :
> Hi,
> 
> as upstream, does it make sense to run 'make clean' when running 'make all'?
> 
> Would that be considered good or bad? Any convention on that?
> 
> Best regards,
> Patrick
> 

Dear Patrick,

This is not `good'. It makes some sort of sense if the dependency
tracking is so broken that you need to run `make clean' anyway whenever
you touch a source file, but even in that case, as upstream, I would not
do it. What comes closest to a specification is:
 
https://www.gnu.org/prep/standards/html_node/Standard-Targets.html#Standard-Targets
which does not even answer your question.

In any case, upstream has the last say and can do as they see fit. As a
Debian maintainer, one can use a build stamp in her debian/rules file if
that helps for her workflow, to keep track of whether the code has been
built already, something like:

build: build-stamp

build-stamp:
        $(MAKE)
        touch build-stamp

clean:
        rm -f build-stamp
        $(MAKE) clean

Doing this in a dh-friendly manner is left as an exercise to the reader.

Regards, Thibaut.

Reply via email to