Add a clean target for Python.

@pphaneuf.
On 13 June 2014 11:51, Pierre Phaneuf <notifications@github.com> wrote:

> In python/Makefile:
>
> > @@ -27,3 +27,7 @@ test: all
> >  	PYTHONPATH=$(PYTHONPATH):. ./ct/client/tls_message_test.py
> >  # Tests using twisted trial instead of plain unittest.
> >  	PYTHONPATH=$(PYTHONPATH):. ./ct/client/async_log_client_test.py
> > +
> > +clean:
> > +	cd ct/proto && rm -f *_pb2.py *.pb.cc *.pb.h
>
> Why the cd, rather than just rm -f ct/proto/*_pb2.py ct/proto/*.pb.cc
> ct/proto/*.pb.h? Just avoiding the repetition?
>
Yes.


> What about rm -f ct/proto/*{_pb2.py,.pb.cc,.pb.h}?
>

I considered that, but was not convinced it was not a syntax related to the
underlying shell, and couldn't be bothered to check the make documentation.
If you think it is portable, happy to change to it.


> —
> Reply to this email directly or view it on GitHub
> <https://github.com/google/certificate-transparency/pull/47/files#r13745945>
> .
>



-- 
Certificate Transparency is hiring! Let me know if you're interested.