coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Théo Zimmermann <theo AT irif.fr>
- To: Coq Club <coq-club AT inria.fr>
- Subject: Re: [Coq-Club] organizing project files
- Date: Mon, 13 Jul 2020 13:09:30 +0200
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=theo AT irif.fr; spf=Pass smtp.mailfrom=theo AT irif.fr; spf=None smtp.helo=postmaster AT korolev.univ-paris7.fr
- Ironport-phdr: 9a23:HBeCGRQpyQZcryN3Ak2uO7ZDhNpsv+yvbD5Q0YIujvd0So/mwa67ZBKDt8tkgFKBZ4jH8fUM07OQ7/m+HzZQqs3f+DBaKdoQDkJD0Z1X1yUbQ+e9QXXhK/DrayFoVO9jb3RCu0+BDE5OBczlbEfTqHDhpRQbGxH4KBYnbr+tQt2agMu4zf299IPOaAtUmjW9falyLBKrpgnNq8Uam4RvJrswxxfTvHdFeOtayG1pKFmOmxrw+tq88IRs/ihNu/8t7dJMXbn/c68lUbFWETMqPnwv6sb2rxfDVwyP5nUdUmUSjBVFBhXO4Q/5UJnsrCb0r/Jx1yaGM8L4S7A0Qimi4LxwSBD0kicHNiU2/3/Rh8dtka9UuhOhpxh4w47JfIGYMed1c63Bcd8GQ2dKQ91cXDJdDIyic4QPDvIBPedGoIn7u1sOtga1CQ21CO/y1jNEmnr60Ks93Oo8DAHGxxQgEMwSv3TIotv1M6ISXvq0zKnO0D7Pa/xb1DP45IXObxsvo+yDXahofMXex0kgFQPLgFuTp4L4IT2ayusDvnOH7+p5T++jl3Irpx1zrzWp28wiipPJhoUQyl3c6yt5wJwyJdqgR0F4YN6kFZ5QuD+AN4tzWMwiRWdoszs9x70auZ60Yi8KxY8mxx7FavyHfZKE4hz5VOuIJzpzmX1qdq6liRmo7Uig1vPzVtOy0FtSsCdIkdfBu34R2hHR7sWKTvVw80iv1DuOyQ3e5OFJL04pmafFK5Ms3rA9m5sNvUnBACP4l0b7gbGUe0sr9eal7+LqaajoqJ+bMo97kAD+MqI2l8ywAOQ4LggOX3WA9uim1b3j+lX1QK9UgfIsj6bZrJDaKtoGqa6+HwBVyZwv6xe4Dzu+zdsYnGIHI05CeBKalYjpIE/BLOr3DfelhFSsjS9ry+jJPr3gHpXNLmXDn6z7cblh7E5czRI/zdVH55JVE70BO/zyWlTruNzfFB85PAq5yPvkBtVlzo4SRGaCD6CDPK/MsVKF6fgjLuiRaIMPpTrwJfso6+bwgXMlnVIRZ6qk0JsNZHymAvhrIF+VbWfvj9sfF2oBoxAwQ/bwiFKYVD5ef3ayULw45jE8EI+mDoDDRpqqgLyFwii7AIdaZn1AClCND3fkbp2EVO0WaCKTOc9skCYIVba7S4M51BGushH1y6Z/I+bJ/iAVuojv2MZ16uDcjx0/9CF4A96A32yDTGx4hmYISCU33KB7r0x90FCD0a1gjvxEFdxc+fRJXxw7NZ7Gzux6Bcr+WgzbftuRUlapXs2mAS0tTtI229IBf0F9G8y7gh/f2yqqHqQamqeQBJ0096Lcx2L+K9x8y3bAzqkhjkMpTtFBNW281eZD8F34AJeBuEGEne7+fqMFmSXJ6W2rzGyUvUgeXhQmAovfWnVKWktXquPL50bHQqWrALIhel9dycOFAqpQa9Ovg08QF6SrA8jXf2/kwzT4Ph2P3L7ZKdezIjhP7GDmEEEB1jsr0zOGOAw5XHvzoGXECzhjCxTyZULytPF3snKgEQk61VPSNhwz5/+O4hcQwMekZbYW17MAtj0mrmQmHUy80ZTYEYjZ/lYzTOBnedo4pWx/+yfBrQUsbJ26Lq4kiERMKwk=
Hi everyone,
Have you had a look at using Dune for your Coq projects? Coq support
in Dune is still alpha but already used in more and more projects and
it has the major advantage of producing hygienic builds.
This is not to say that hygienic builds couldn't be added to
coq_makefile as well, but with Dune on the horizon, I don't think you
can count on any of the main developers to fulfill this request.
Some references on Dune:
https://coq.github.io/doc/v8.12/refman/practical-tools/utilities.html#building-a-coq-project-with-dune
https://dune.readthedocs.io/en/stable/dune-files.html#coq-theory
https://coq.discourse.group/t/a-guide-to-building-your-coq-libraries-and-plugins-with-dune/20
https://coq.discourse.group/t/compilation-output-files/734
https://github.com/coq-community/templates (can generate basic Dune
files if you add "dune: true" to your meta.yml)
Cheers,
Théo
Le lun. 13 juil. 2020 à 10:41, Ralf Jung <jung AT mpi-sws.org> a écrit :
>
> Hi,
>
> unless that has already been done, IMO it is reasonable to report this as a
> feature request against coq_makefile. I'd also prefer the Coq build to not
> clobber the source directory.
>
> Kind regards,
> Ralf
>
> On 13.07.20 06:42, Chris Dams wrote:
> > Hello Erkki,
> >
> > I have a Makefile for this purpose. The files that are build end up in the
> > 'build' directory. Contents is below. Coqide does not always work
> > optimally with
> > this, though. It seems to like the aux files in the same directory
> > sometimes.
> > But it does not prevent you from editing with coqide. Sometimes one just
> > has to
> > press the down error twice to make it start compiling.
> >
> > Good luck,
> > Chris
> >
> > target: build/redblack/redblack.vo
> >
> > SRC = $(shell ls */*.v)
> >
> > ifneq ($(MAKECMDGOALS), clean)
> > -include $(addprefix build/,$(SRC:.v=.d))
> > endif
> >
> > target:
> > @echo succeeded building $^
> >
> > build/%.d: %.v
> > @echo coqdep $<
> > @coqdep -R . Lib $< | sed 's/\([a-zA-Z0-9\/_]*.vo\)/build\/\1/g' > $@
> >
> > build/%.vo: %.v
> > @echo coqc $<
> > @coqc -R . Lib -o $@ $<
> >
> > clean:
> > rm -f build/*/*.vo build/*/*.glob build/*/*.d build/*/.*.aux
> >
>
> --
> Website: https://people.mpi-sws.org/~jung/
- [Coq-Club] organizing project files, Erkki Luuk, 07/13/2020
- Re: [Coq-Club] organizing project files, Chris Dams, 07/13/2020
- Re: [Coq-Club] organizing project files, Ralf Jung, 07/13/2020
- Re: [Coq-Club] organizing project files, Théo Zimmermann, 07/13/2020
- Re: [Coq-Club] organizing project files, Erkki Luuk, 07/13/2020
- Re: [Coq-Club] organizing project files, Théo Zimmermann, 07/13/2020
- Re: [Coq-Club] organizing project files, Ralf Jung, 07/13/2020
- Re: [Coq-Club] organizing project files, Chris Dams, 07/13/2020
Archive powered by MHonArc 2.6.19+.