make clean cleans too much in doc and removes all *.gp and *.png files

Bug #1672085 reported by J G Miller
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Enblend
In Progress
Low
Christoph Spiel

Bug Description

For source code enblend-enfuse, doing a make clean from the top level directory (and also from the doc directory its-self) causes the deletion of all *.gp files

rm -f *.eps *.png *.pstex *.gp

However these .gp files are not dynamically created and their presence (coming from the source archive) is needed to build the documentation.

./docstrings key-value \
            UPDATED '2016-03-29\datebyfs' \
            VERSION '4.2' \
            DOCDIR '/usr/local/share/doc/enblend-enfuse' > enblend-version.tex
make[3]: *** No rule to make target 'colors.gp', needed by 'log-transform.gp'. Stop.
make[3]: Leaving directory '/usr/src/build/enblend-enfuse-4.2/doc'
Makefile:580: recipe for target 'all-recursive' failed

Not tested, but I suspect that the *.png should not be deleted either, since these are also only supplied from the unpacked source archive.

--- Makefile.am.ORIG 2017-03-11 21:38:33.947959712 +0100
+++ Makefile.am 2017-03-11 21:38:33.947959712 +0100
@@ -111,7 +111,7 @@

 .PHONY: clean-local
 clean-local:
- - rm -f *.eps *.png *.pstex
+ - rm -f *.eps *.pstex
        - rm -f *.{g,o,p,a}nd *.{g,o,p,a}dx
        - rm -f *.idx *.ilg *.ind *.lo{a,f,t,x} *.toc
        - rm -f *.aux *.log *.dvi *.ps *.pdf

Revision history for this message
Christoph Spiel (cspiel) wrote :

Please check out revision ba3e20d0947b:
    http://hg.code.sf.net/p/enblend/code/rev/ba3e20d0947b
whether it solves the problem and the bug
description is accurate enough.

THX for supplying a patch!

/cls

Changed in enblend:
status: New → In Progress
assignee: nobody → Christoph Spiel (cspiel)
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.