Poetry and Makefile #7739
-
Poetry is built to manage packages, we know that. There is other thing that handle development processes well: Makefile! On my learning process, I wrote a file to organize the main development workflows. The commands
@neersighted It is a great question, isn't it? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
because you got the makefile wrong. explaining makefiles is very far off topic for a poetry discussion but you want target, then prerequisites, then recipe. You've written the recipe where the prerequisites should go. |
Beta Was this translation helpful? Give feedback.
-
The following answer will sound sarcastic, interpret as not: I really want to know what on-topic means in computer science, since most solutions are a combination of tools and practices. May you inform or forward some reference for me to consult? Or even suggest a fix for given Makefile? |
Beta Was this translation helpful? Give feedback.
-
Yes, the internet content is some words away and "common knowledge" is way too uncommon than we may think. I thank for your effort to point the proper instructions. As advice, skip the remark "it should be very easy to find such things for yourself." |
Beta Was this translation helpful? Give feedback.
-
A bit too late but your
I have created a simple guidelines for Makefiles here https://github.com/mapsa/makefile-examples in case it helps. I would include phony targets too ( |
Beta Was this translation helpful? Give feedback.
A bit too late but your
enable
target is wrong. It is sayingpoetry
is a dependency. The Makefile will try to build your dependencies and it is expecting to build yourpoetry
target that doesn't exist (it will also try to create ashell
target after which is also wrong).It should be:
I have created a simple guidelines for Makefiles here https://github.com/mapsa/makefile-examples in case it helps. I would include phony targets too (
enable
is one).