Extend the glob
tooling to create glob-based rules, similar to "file pattern rules" in make
#9
Labels
glob
tooling to create glob-based rules, similar to "file pattern rules" in make
#9
In GNU make there is a powerful concept that many users love for its compacity and expressiveness: so-called "pattern rules". The concept is extremely simple:
For example:
tells
make
that the recipebison -d foo.y
will make bothfoo.tab.c
andfoo.tab.h
.Currently in the python stdlib there is a solid foundation for the "search" part of this:
glob
. However it remains a bit cumbersome to defineglob
-generated lists of(source file/folder, destination file(s)/folder(s))
.fprules
is an attempt to provide such functionality.As opposed to
make
where the feature is integrated in the build tool, we could imagine to provide a generic mechanism allowing any build tool to leverage the generated rules. For exampledoit
,nox
, etc.fprules
follows this principle: it is not tied to a build tool in particular. However it could maybe be improved to become even more expressive (see https://github.com/smarie/python-fprules/issues)The text was updated successfully, but these errors were encountered: