Makefile replacement
abitrolly opened this issue · 2 comments
abitrolly commented
Is it possible to add some primitives to https://github.com/bitfield/script for primitive Makefile replacement?
I have no idea how it would look like in Go syntax. Maybe borrow things from SCons? https://scons-cookbook.readthedocs.io/en/latest/
bitfield commented
Nice suggestion, @abitrolly, thanks! Maybe you could come up with a few examples of the sort of script program you'd like to write to replace a Makefile?
abitrolly commented
Well, there is a master issue here https://gitlab.com/gitlab-org/gitlab-development-kit/-/issues/166 which is a general rant about Makefile shenanigans.
Maybe something like this would be good for dependency tracking.
docs = target('./gitlab-docs).Clone('https://gitlab.com/gitlab-org/gitlab-docs')
main = target.Add(docs)
main.Build()