From 4c671580b002e381a0f361073bf728602198a61b Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Thu, 30 Oct 2025 13:39:07 -0400 Subject: [PATCH 1/2] [i18n/meta] Update Makefile to only compile changed language files This updates the makefile so that it will only run the msgfmt or i18next-conv commands if the source file has changed. This should speed up compile time during development. --- Makefile | 178 ++++++++++++++++++++++++------------------------------- 1 file changed, 76 insertions(+), 102 deletions(-) diff --git a/Makefile b/Makefile index 01a2acd4a0e..ac73d15f961 100755 --- a/Makefile +++ b/Makefile @@ -1,11 +1,83 @@ .PHONY: clean dev all check checkstatic unittests jslatest testdata locales +POFILES=locale/fr/LC_MESSAGES/loris.po \ + locale/ja/LC_MESSAGES/loris.po \ + locale/hi/LC_MESSAGES/loris.po \ + locale/es/LC_MESSAGES/loris.po \ + locale/en/LC_MESSAGES/loris.po \ + modules/media/locale/ja/LC_MESSAGES/media.po \ + modules/datadict/locale/ja/LC_MESSAGES/datadict.po \ + modules/datadict/locale/hi/LC_MESSAGES/datadict.po \ + modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po \ + modules/statistics/locale/ja/LC_MESSAGES/statistics.po \ + modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.po \ + modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po \ + modules/configuration/locale/ja/LC_MESSAGES/configuration.po \ + modules/oidc/locale/ja/LC_MESSAGES/oidc.po \ + modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po \ + modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po \ + modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po \ + modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po \ + modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po \ + modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po \ + modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po \ + modules/new_profile/locale/es/LC_MESSAGES/new_profile.po \ + modules/dqt/locale/ja/LC_MESSAGES/dqt.po \ + modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po \ + modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.po \ + modules/instruments/locale/ja/LC_MESSAGES/instruments.po \ + modules/instruments/locale/es/LC_MESSAGES/instruments.po \ + modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po \ + modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po \ + modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po \ + modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po \ + modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po \ + modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po \ + modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po \ + modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po \ + modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po \ + modules/next_stage/locale/es/LC_MESSAGES/next_stage.po \ + modules/examiner/locale/ja/LC_MESSAGES/examiner.po \ + modules/login/locale/ja/LC_MESSAGES/login.po \ + modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po \ + modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po \ + modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po \ + modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po \ + modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po \ + modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po \ + modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po \ + modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po \ + modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po \ + modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po \ + modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po \ + modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po \ + modules/data_release/locale/ja/LC_MESSAGES/data_release.po \ + modules/data_release/locale/hi/LC_MESSAGES/data_release.po \ + modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po \ + modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.po \ + modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.po \ + modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.po \ + modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.po \ + modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.po \ + modules/api_docs/locale/ja/LC_MESSAGES/api_docs.po \ + modules/publication/locale/ja/LC_MESSAGES/publication.po \ + modules/dashboard/locale/ja/LC_MESSAGES/dashboard.po \ + modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po \ + modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po \ + modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po + +MOFILES=$(patsubst %.po,%.mo,$(POFILES)) +I18NJSONFILES=$(patsubst %.po,%.json,$(POFILES)) + all: node_modules locales VERSION vendor npm run build %.mo: %.po msgfmt -o $@ $< +%.json: %.po + npx i18next-conv -l UNUSED -t $@ -s $< --compatibilityJSON v4 + # If anything changes, re-generate the VERSION file VERSION: . tools/gen-version.sh @@ -62,98 +134,7 @@ check: checkstatic unittests testdata: php tools/raisinbread_refresh.php -locales: - msgfmt -o locale/en/LC_MESSAGES/loris.mo locale/en/LC_MESSAGES/loris.po - npx i18next-conv -l en -s locale/en/LC_MESSAGES/loris.po -t locale/en/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/fr/LC_MESSAGES/loris.mo locale/fr/LC_MESSAGES/loris.po - npx i18next-conv -l fr -s locale/fr/LC_MESSAGES/loris.po -t locale/fr/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/ja/LC_MESSAGES/loris.mo locale/ja/LC_MESSAGES/loris.po - npx i18next-conv -l ja -s locale/ja/LC_MESSAGES/loris.po -t locale/ja/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/hi/LC_MESSAGES/loris.mo locale/hi/LC_MESSAGES/loris.po - npx i18next-conv -l hi -s locale/hi/LC_MESSAGES/loris.po -t locale/hi/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o locale/es/LC_MESSAGES/loris.mo locale/es/LC_MESSAGES/loris.po - npx i18next-conv -l es -s locale/es/LC_MESSAGES/loris.po -t locale/es/LC_MESSAGES/loris.json --compatibilityJSON v4 - msgfmt -o modules/new_profile/locale/ja/LC_MESSAGES/new_profile.mo modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po - npx i18next-conv -l ja -s modules/new_profile/locale/ja/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/ja/LC_MESSAGES/new_profile.json - msgfmt -o modules/new_profile/locale/hi/LC_MESSAGES/new_profile.mo modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po - npx i18next-conv -l hi -s modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/hi/LC_MESSAGES/new_profile.json - msgfmt -o modules/new_profile/locale/es/LC_MESSAGES/new_profile.mo modules/new_profile/locale/es/LC_MESSAGES/new_profile.po - npx i18next-conv -l es -s modules/new_profile/locale/es/LC_MESSAGES/new_profile.po -t modules/new_profile/locale/es/LC_MESSAGES/new_profile.json --compatibilityJSON v4 - msgfmt -o modules/new_profile/locale/hi/LC_MESSAGES/new_profile.mo modules/new_profile/locale/hi/LC_MESSAGES/new_profile.po - msgfmt -o modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.po - msgfmt -o modules/api_docs/locale/ja/LC_MESSAGES/api_docs.mo modules/api_docs/locale/ja/LC_MESSAGES/api_docs.po - msgfmt -o modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.mo modules/battery_manager/locale/ja/LC_MESSAGES/battery_manager.po - msgfmt -o modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.mo modules/behavioural_qc/locale/ja/LC_MESSAGES/behavioural_qc.po - msgfmt -o modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.mo modules/brainbrowser/locale/ja/LC_MESSAGES/brainbrowser.po - msgfmt -o modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.mo modules/bvl_feedback/locale/ja/LC_MESSAGES/bvl_feedback.po - msgfmt -o modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po - npx i18next-conv -l ja -s modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json - msgfmt -o modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po - npx i18next-conv -l hi -s modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json - msgfmt -o modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po - npx i18next-conv -l ja -s modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.po -t modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.json - msgfmt -o modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.mo modules/candidate_profile/locale/ja/LC_MESSAGES/candidate_profile.po - msgfmt -o modules/configuration/locale/ja/LC_MESSAGES/configuration.mo modules/configuration/locale/ja/LC_MESSAGES/configuration.po - msgfmt -o modules/configuration/locale/ja/LC_MESSAGES/configuration.mo modules/configuration/locale/ja/LC_MESSAGES/configuration.po - msgfmt -o modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.mo modules/conflict_resolver/locale/ja/LC_MESSAGES/conflict_resolver.po - msgfmt -o modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.mo modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po - npx i18next-conv -l ja -s modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.po -t modules/create_timepoint/locale/ja/LC_MESSAGES/create_timepoint.json - msgfmt -o modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.mo modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po - npx i18next-conv -l es -s modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.po -t modules/create_timepoint/locale/es/LC_MESSAGES/create_timepoint.json - msgfmt -o modules/dashboard/locale/ja/LC_MESSAGES/dashboard.mo modules/dashboard/locale/ja/LC_MESSAGES/dashboard.po - msgfmt -o modules/datadict/locale/ja/LC_MESSAGES/datadict.mo modules/datadict/locale/ja/LC_MESSAGES/datadict.po - msgfmt -o modules/datadict/locale/hi/LC_MESSAGES/datadict.mo modules/datadict/locale/hi/LC_MESSAGES/datadict.po - npx i18next-conv -l hi -s modules/datadict/locale/hi/LC_MESSAGES/datadict.po -t modules/datadict/locale/hi/LC_MESSAGES/datadict.json - npx i18next-conv -l ja -s modules/datadict/locale/ja/LC_MESSAGES/datadict.po -t modules/datadict/locale/ja/LC_MESSAGES/datadict.json - msgfmt -o modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po - msgfmt -o modules/data_release/locale/ja/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.po - npx i18next-conv -l ja -s modules/data_release/locale/ja/LC_MESSAGES/data_release.po -t modules/data_release/locale/ja/LC_MESSAGES/data_release.json - msgfmt -o modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/hi/LC_MESSAGES/data_release.po - npx i18next-conv -l hi -s modules/data_release/locale/hi/LC_MESSAGES/data_release.po -t modules/data_release/locale/hi/LC_MESSAGES/data_release.json - msgfmt -o modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.mo modules/dicom_archive/locale/ja/LC_MESSAGES/dicom_archive.po - msgfmt -o modules/dictionary/locale/ja/LC_MESSAGES/dictionary.mo modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po - npx i18next-conv -l ja -s modules/dictionary/locale/ja/LC_MESSAGES/dictionary.po -t modules/dictionary/locale/ja/LC_MESSAGES/dictionary.json - msgfmt -o modules/dictionary/locale/hi/LC_MESSAGES/dictionary.mo modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po - npx i18next-conv -l hi -s modules/dictionary/locale/hi/LC_MESSAGES/dictionary.po -t modules/dictionary/locale/hi/LC_MESSAGES/dictionary.json - msgfmt -o modules/document_repository/locale/ja/LC_MESSAGES/document_repository.mo modules/document_repository/locale/ja/LC_MESSAGES/document_repository.po - msgfmt -o modules/dqt/locale/ja/LC_MESSAGES/dqt.mo modules/dqt/locale/ja/LC_MESSAGES/dqt.po - msgfmt -o modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.mo modules/electrophysiology_browser/locale/ja/LC_MESSAGES/electrophysiology_browser.po - msgfmt -o modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.mo modules/electrophysiology_uploader/locale/ja/LC_MESSAGES/electrophysiology_uploader.po - msgfmt -o modules/examiner/locale/ja/LC_MESSAGES/examiner.mo modules/examiner/locale/ja/LC_MESSAGES/examiner.po - msgfmt -o modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.mo modules/genomic_browser/locale/ja/LC_MESSAGES/genomic_browser.po - msgfmt -o modules/help_editor/locale/ja/LC_MESSAGES/help_editor.mo modules/help_editor/locale/ja/LC_MESSAGES/help_editor.po - msgfmt -o modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.mo modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po - npx i18next-conv -l ja -s modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.po -t modules/imaging_browser/locale/ja/LC_MESSAGES/imaging_browser.json --compatibilityJSON v4 - msgfmt -o modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.mo modules/imaging_qc/locale/ja/LC_MESSAGES/imaging_qc.po - msgfmt -o modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.mo modules/imaging_uploader/locale/ja/LC_MESSAGES/imaging_uploader.po - msgfmt -o modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.mo modules/instrument_builder/locale/ja/LC_MESSAGES/instrument_builder.po - msgfmt -o modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/ja/LC_MESSAGES/instrument_list.po - msgfmt -o modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.mo modules/instrument_list/locale/es/LC_MESSAGES/instrument_list.po - msgfmt -o modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.po - msgfmt -o modules/instruments/locale/ja/LC_MESSAGES/instruments.mo modules/instruments/locale/ja/LC_MESSAGES/instruments.po - msgfmt -o modules/instruments/locale/es/LC_MESSAGES/instruments.mo modules/instruments/locale/es/LC_MESSAGES/instruments.po - msgfmt -o modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.po - msgfmt -o modules/login/locale/ja/LC_MESSAGES/login.mo modules/login/locale/ja/LC_MESSAGES/login.po - msgfmt -o modules/media/locale/ja/LC_MESSAGES/media.mo modules/media/locale/ja/LC_MESSAGES/media.po - msgfmt -o modules/module_manager/locale/ja/LC_MESSAGES/module_manager.mo modules/module_manager/locale/ja/LC_MESSAGES/module_manager.po - msgfmt -o modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.mo modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.po - msgfmt -o modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po - npx i18next-conv -l ja -s modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - npx i18next-conv -l hi -s modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - msgfmt -o modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po - msgfmt -o modules/next_stage/locale/ja/LC_MESSAGES/next_stage.mo modules/next_stage/locale/ja/LC_MESSAGES/next_stage.po - msgfmt -o modules/next_stage/locale/es/LC_MESSAGES/next_stage.mo modules/next_stage/locale/es/LC_MESSAGES/next_stage.po - msgfmt -o modules/oidc/locale/ja/LC_MESSAGES/oidc.mo modules/oidc/locale/ja/LC_MESSAGES/oidc.po - msgfmt -o modules/publication/locale/ja/LC_MESSAGES/publication.mo modules/publication/locale/ja/LC_MESSAGES/publication.po - msgfmt -o modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.mo modules/schedule_module/locale/ja/LC_MESSAGES/schedule_module.po - msgfmt -o modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.mo modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.po - msgfmt -o modules/statistics/locale/ja/LC_MESSAGES/statistics.mo modules/statistics/locale/ja/LC_MESSAGES/statistics.po - npx i18next-conv -l ja -s modules/statistics/locale/ja/LC_MESSAGES/statistics.po -t modules/statistics/locale/ja/LC_MESSAGES/statistics.json - msgfmt -o modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.mo modules/survey_accounts/locale/ja/LC_MESSAGES/survey_accounts.po - msgfmt -o modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/ja/LC_MESSAGES/timepoint_list.po - msgfmt -o modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.mo modules/timepoint_list/locale/es/LC_MESSAGES/timepoint_list.po - msgfmt -o modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.mo modules/user_accounts/locale/ja/LC_MESSAGES/user_accounts.po - +locales: $(MOFILES) $(I18NJSONFILES) acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo target=acknowledgements npm run compile @@ -161,16 +142,13 @@ acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgement create_timepoint: target=data_release npm run compile -data_release: modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.mo - npx i18next-conv -l hi -s modules/data_release/locale/hi/LC_MESSAGES/data_release.po -t modules/data_release/locale/hi/LC_MESSAGES/data_release.json - npx i18next-conv -l ja -s modules/data_release/locale/ja/LC_MESSAGES/data_release.po -t modules/data_release/locale/ja/LC_MESSAGES/data_release.json +data_release: modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.mo modules/data_release/locale/hi/LC_MESSAGES/data_release.json modules/data_release/locale/ja/LC_MESSAGES/data_release.json target=data_release npm run compile instrument_manager: modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo target=instrument_manager npm run compile dataquery: modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo - msgfmt -o modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo modules/dataquery/locale/ja/LC_MESSAGES/dataquery.po target=dataquery npm run compile login: modules/login/locale/ja/LC_MESSAGES/login.mo @@ -185,9 +163,7 @@ mri_violations: modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.mo issue_tracker: modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo target=issue_tracker npm run compile -candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo - npx i18next-conv -l ja -s modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json - npx i18next-conv -l hi -s modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.po -t modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json +candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json target=candidate_list npm run compile candidate_parameters: modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo @@ -205,7 +181,5 @@ server_processes_manager: modules/server_processes_manager/locale/ja/LC_MESSAGES conflict_resolver: target=conflict_resolver npm run compile -my_preferences: modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo - npx i18next-conv -l ja -s modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 - npx i18next-conv -l hi -s modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.po -t modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json --compatibilityJSON v4 +my_preferences: modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json target=my_preferences npm run compile From 93139c28f756ac0d41b9bc53491b2764c533909d Mon Sep 17 00:00:00 2001 From: Dave MacFarlane Date: Fri, 31 Oct 2025 15:05:26 -0400 Subject: [PATCH 2/2] Use filter to generate dependency list --- Makefile | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/Makefile b/Makefile index ac73d15f961..85428330b60 100755 --- a/Makefile +++ b/Makefile @@ -136,50 +136,50 @@ testdata: locales: $(MOFILES) $(I18NJSONFILES) -acknowledgements: modules/acknowledgements/locale/ja/LC_MESSAGES/acknowledgements.mo +acknowledgements: $(filter modules/acknowledgements/%,$(MOFILES)) $(filter modules/acknowledgements/%,$(I18NJSONFILES)) target=acknowledgements npm run compile -create_timepoint: +create_timepoint: $(filter modules/create_timepoint/%,$(MOFILES)) $(filter modules/create_timepoint/%,$(I18NJSONFILES)) target=data_release npm run compile -data_release: modules/data_release/locale/hi/LC_MESSAGES/data_release.mo modules/data_release/locale/ja/LC_MESSAGES/data_release.mo modules/data_release/locale/hi/LC_MESSAGES/data_release.json modules/data_release/locale/ja/LC_MESSAGES/data_release.json +data_release: $(filter modules/data_release/%,$(MOFILES)) $(filter modules/data_release/%,$(I18NJSONFILES)) target=data_release npm run compile -instrument_manager: modules/instrument_manager/locale/ja/LC_MESSAGES/instrument_manager.mo +instrument_manager: $(filter modules/instrument_manager/%,$(MOFILES)) $(filter modules/instrument_manager/%,$(I18NJSONFILES)) target=instrument_manager npm run compile -dataquery: modules/dataquery/locale/ja/LC_MESSAGES/dataquery.mo +dataquery: $(filter modules/dataquery/%,$(MOFILES)) $(filter modules/dataquery/%,$(I18NJSONFILES)) target=dataquery npm run compile -login: modules/login/locale/ja/LC_MESSAGES/login.mo +login: $(filter modules/login/%,$(MOFILES)) $(filter modules/login/%,$(I18NJSONFILES)) target=login npm run compile -module_manager: modules/module_manager/locale/ja/LC_MESSAGES/module_manager.mo +module_manager: $(filter modules/module_manager/%,$(MOFILES)) $(filter modules/module_manager/%,$(I18NJSONFILES)) target=module_manager npm run compile -mri_violations: modules/mri_violations/locale/ja/LC_MESSAGES/mri_violations.mo +mri_violations: $(filter modules/mri_violations/%,$(MOFILES)) $(filter modules/mri_violations/%,$(I18NJSONFILES)) target=mri_violations npm run compile -issue_tracker: modules/issue_tracker/locale/ja/LC_MESSAGES/issue_tracker.mo +issue_tracker: $(filter modules/issue_tracker/%,$(MOFILES)) $(filter modules/issue_tracker/%,$(I18NJSONFILES)) target=issue_tracker npm run compile -candidate_list: modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.mo modules/candidate_list/locale/ja/LC_MESSAGES/candidate_list.json modules/candidate_list/locale/hi/LC_MESSAGES/candidate_list.json +candidate_list: $(filter modules/candidate_list/%,$(MOFILES)) $(filter modules/candidate_list/%,$(I18NJSONFILES)) target=candidate_list npm run compile -candidate_parameters: modules/candidate_parameters/locale/ja/LC_MESSAGES/candidate_parameters.mo +candidate_parameters: $(filter modules/candidate_parameters/%,$(MOFILES)) $(filter modules/candidate_parameters/%,$(I18NJSONFILES)) target=candidate_parameters npm run compile -dashboard: modules/dashboard/locale/ja/LC_MESSAGES/dashboard.mo +dashboard: $(filter modules/dashboard/%,$(MOFILES)) $(filter modules/dashboard/%,$(I18NJSONFILES)) target=dashboard npm run compile -publication: modules/publication/locale/ja/LC_MESSAGES/publication.mo +publication: $(filter modules/publication/%,$(MOFILES)) $(filter modules/publication/%,$(I18NJSONFILES)) target=publication npm run compile -server_processes_manager: modules/server_processes_manager/locale/ja/LC_MESSAGES/server_processes_manager.mo +server_processes_manager: $(filter modules/server_processes_manager/%,$(MOFILES)) $(filter modules/server_processes_manager/%,$(I18NJSONFILES)) target=server_processes_manager npm run compile -conflict_resolver: +conflict_resolver: $(filter modules/conflict_resolver/%,$(MOFILES)) $(filter modules/conflict_resolver/%,$(I18NJSONFILES)) target=conflict_resolver npm run compile -my_preferences: modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.mo modules/my_preferences/locale/ja/LC_MESSAGES/my_preferences.json modules/my_preferences/locale/hi/LC_MESSAGES/my_preferences.json +my_preferences: $(filter modules/my_preferences/%,$(MOFILES)) $(filter modules/my_preferences/%,$(I18NJSONFILES)) target=my_preferences npm run compile