Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.

Conversation

@kdmccormick
Copy link
Contributor

'make dev.provision' was trying to provision the 'o' service, due strangeness related to the fact that Makefiles were designed for compiling C programs (which have .o intermediate files). Fix the issue by adding all rules to PHONIES, which tells Make that none of the targets are real files. Co-authored-by: Tim McCormack <tmccormack@edx.org> 
@timmc-edx
Copy link
Contributor

Thoughts on including other targets as well, such as update-db and lms-shell? I'm not sure which ones are most likely to cause problems.

Also, apparently one common Makefile style guide recommends putting .PHONY: foo above each target foo:, but I'm not sure I can stomach that. :-P

@timmc-edx
Copy link
Contributor

(I see a total of 77 targets we could include, not counting pattern rules.)

@kdmccormick
Copy link
Contributor Author

@timmc-edx Whoops, good catch. My script wasn't grabbing targets with dashes.

I've seen that recommendation before as well, and I lean towards just maintaining a big blob of phonies at the top instead of peppering the noise throughout the file. I can definitely polish my PHONIES-generation script and push it to repo-tools if that's something people would find useful.

@timmc-edx
Copy link
Contributor

You'll want numbers as well, for e2e-shell and e2e-tests.

This is what I ended up with, for reference: grep '^[^:%]+(?=:)' -Po ~/openedx/devstack/Makefile | grep -v '\t|#' -P | grep '[a-z]' ("Any static pattern that isn't all uppercase.")

'make dev.provision' was trying to provision the 'o' service, due strangeness related to the fact that Makefiles were designed for compiling C programs (which have .o intermediate files). Fix the issue by adding all rules to PHONIES, which tells Make that none of the targets are real files. Co-authored-by: Tim McCormack <tmccormack@edx.org>
@kdmccormick
Copy link
Contributor Author

How about now?

@kdmccormick
Copy link
Contributor Author

The Travis failure seems to be unrelated and is also occurring on Master.

@kdmccormick kdmccormick merged commit 38c70d7 into master Jan 23, 2020
@kdmccormick kdmccormick deleted the kdmccormick/phonies branch January 23, 2020 14:53
@thraxil thraxil mentioned this pull request Jan 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants