chore(Makefile): Ensure targets are always run#3013
chore(Makefile): Ensure targets are always run#3013georglauterbach merged 2 commits intodocker-mailserver:masterfrom
Conversation
This ensures the recipies are always run.
I guess both work, I have seen both too. |
I thought exactly the same, and had already removed it at some point in time. But then, As an alternative to |
This ensures the recipies are always run. Co-authored-by: georglauterbach <[email protected]>
This ensures the recipies are always run. Co-authored-by: georglauterbach <[email protected]>
I'd be open towards changing from Earthly has been on my radar, but I think that'd be more invasive of a change, and I'm not sure how beneficial it'd be as I think it may not support some features we're using with |
You're probably right. @casperklein what's your take on this?
I've never used earthly, I will have a look at it :) Just is something I use on a daily basis, and it works very well. I discovered it because I live Rust too 🙈 |
|
Pro Switching to something else should bring useful benefits. Otherwise I don't think it's worth to convert to something else. Also it's not that often, that our Makefile is modified. It's there and it does it's job. |
Personally the Makefile has not been a fun experience for me with it's syntax and gotchas. So I think the benefit is improved maintenance with
Fair. It's been stripped down quite a bit since it's first usage, but the syntax + usage perhaps more complicated to grok. Our |
|
I started a side-by-side comparison of the |
* added options to toggle OpenDKIM & OpenDMARC rspamd can provide DKIM signing and DMARC checking itself, so users should be able to disable OpenDKIM & OpenDMARC. The default is left at 1, so users have to to opt-in when the want to disable the features. * misc small enhancements * adjusted start of rspamd The order of starting redis + rspamd was reversed (now correct) and rspamd now starts with the correct user. * adjusted rspamd core configuration The main configuration was revised. This includes AV configuration as well as worker/proxy/controller configuration used to control the main rspamd processes. The configuration is not tested extensively, but well enough that I am confident to go forward with it until we declare rspamd support as stable. * update & improve the documentation * add tests These are some initial tests which test the most basic functionality. * tests(refactor): Improve consistency and documentation for test helpers (#3012) * added `ALWAYS_RUN` target `Makefile` recipies (#3013) This ensures the recipies are always run. Co-authored-by: georglauterbach <[email protected]> * adjusted rspamd test to refactored test helper functions * improve documentation * apply suggestions from code review (no. 1 by @polarthene) Co-authored-by: Brennan Kinney <[email protected]> * streamline heredoc (EOM -> EOF) * adjust rspamd test (remove unnecessary run arguments) Co-authored-by: Brennan Kinney <[email protected]>
Description
This commit is pulled out of #3012 and is explained in this PR comment:
.PHONY: ALWAYS_RUNalready exists in the Makefile. This PR just applies it more broadly as decided by @georglauterbachNOTE: From what I have seen in Makefile docs for
.PHONYthis seems a bit of a different approach?The targets seem to get appended to the
.PHONY:target, rather than this usage of prefixing target values withALWAYS_RUN? (a target dependency that is.PHONY) It seems like it may behave the same way, so perhaps it doesn't matter?Type of change