-
Notifications
You must be signed in to change notification settings - Fork 22
Make dist generate MO files for inclusion in the dist file. #449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
* Avoid reimplementing the share/Makefile mechanism * Use `make -C share` instead of `cd share && make` * Declare phony targets as such * Tidy Makefile.PL according to .perltidyrc
tgreenx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Tested and works as advertised.
@marc-vanderwal please review this solution, which should fix #442
@matsduf could you test this on FreeBSD? (cf. "How to test" section)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works on FreeBSD, but it is not possible to run run make distcheck before make all or make dist has been run. I think it makes more sense to run make all before make dist to be able to run make distcheck before make dist.
Maybe make distcheck should be included, and make dist not run if distcheck fails.
matsduf
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is important that make distcheck is included in the process. It would be nice of make dist makes it all, but then make distcheck should be automatically run before the distribution file is created, and the latter should be blocked if MANIFEST is not up to date.
Purpose
This PR updates
make distto generate the MO files before creating the tarball.As a drive-by, some clean-up is also performed on
Makefile.PL.Context
Fixes #442.
Changes
make -C share moto only generate all MO files.make distdepend onmake -C share mo. Maybe there are simpler and better ways to achieve this, but the best I could come up with was:make mydistthat runs bothmake -C share moandmake tardistin that order.tardisttomydist.make -C shareinstead ofcd share && makeTesting
I tested this by executing the following and verifying that all of the MO files were listed.
I have not tested this on FreeBSD. My hypothesis is that the share/Makefile mechanism is able switch to gmake on FreeBSD, but I haven't actually tested it.