Menu

#6 No clean run of 'make clean'

v1.0_(example)
closed
None
1
2019-03-05
2019-03-03
Rolf Ebert
No

When running "make clean" the Makefile issues a

for s in doc src; do \
  make -w -C $s clean; \
done

which fails in the src directory as there is no 'clean' target.

make[1]: Entering directory '/home/re/Devel/adequate/tools/ews/doc'
rm -rf .build
rm ews_demo ews_htdocs.*
make[1]: Leaving directory '/home/re/Devel/adequate/tools/ews/doc'
make[1]: Entering directory '/home/re/Devel/adequate/tools/ews/src'
make[1]: *** No rule to make target 'clean'.  Stop.
make[1]: Leaving directory '/home/re/Devel/adequate/tools/ews/src'
Makefile:112: recipe for target 'clean' failed

This patch solves the problem:

--- ../ews-20140121/src/Makefile        2014-01-21 19:06:52.000000000 +0100
+++ src/Makefile        2019-03-03 15:40:51.277748067 +0100
@@ -23,3 +23,7 @@

 dist:
 .PHONY: dist
+
+clean:
+.PHONY: clean

Discussion

  • Simon Wright

    Simon Wright - 2019-03-05

    Thanks for this!

    The actual cause of this was an equivalent omission in src/Makefile.dist, which is copied into the distribution's src/Makefile.

    I've made a new release (I had several uncommitted tidy-up changes, from 2015, oops): 20190305.

     
  • Simon Wright

    Simon Wright - 2019-03-05
    • status: open --> closed
    • assigned_to: Simon Wright
     

Log in to post a comment.