Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
executable file
·151 lines (106 loc) · 5.84 KB
/
Copy pathMakefile
File metadata and controls
executable file
·151 lines (106 loc) · 5.84 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.PHONY: clean dev all check checkstatic unittests jslatest testdata locales
POFILES=$(wildcard locale/*/LC_MESSAGES/*.po modules/*/locale/*/LC_MESSAGES/*.po project/modules/*/locale/*/LC_MESSAGES/*.po project/locale/*/LC_MESSAGES/*.po)
MOFILES=$(patsubst %.po,%.mo,$(POFILES))
I18NJSONFILES=$(patsubst %.po,%.json,$(POFILES))
all: node_modules locales VERSION vendor
npm run build
%.mo: %.po
msgfmt --use-fuzzy -o $@ $<
%.json: %.po
npx i18next-conv -l $(notdir $(patsubst %/LC_MESSAGES/,%,$(dir $<))) -t $@ -s $< --compatibilityJSON v4
# If anything changes, re-generate the VERSION file
VERSION: .
tools/gen-version.sh
vendor/bin/phan: composer.lock
composer install
vendor/bin/phpunit: composer.lock
composer install
vendor: composer.lock
composer install --no-dev
node_modules: package-lock.json
npm ci
dev: node_modules locales vendor/bin/phan VERSION vendor
npm run compile
jslatest: clean
rm -rf package-lock.json
rm -rf modules/electrophysiology_browser/jsx/react-series-data-viewer/package-lock.json
npm install
npm run compile
clean:
rm -f smarty/templates_c/*
rm -f VERSION
rm -rf vendor
rm -rf node_modules
rm -rf modules/electrophysiology_browser/jsx/react-series-data-viewer/node_modules
rm -f modules/*/locale/*/LC_MESSAGES/*.mo
# Perform static analysis checks
checkstatic: vendor/bin/phan dev
npm run lint:php
vendor/bin/phan
npm run lint:js
# The 'alex' tool scans documentation for condescending language.
# Arguments:
# --quiet Shows only warnings and errors
# --why Explains why something is problematic
# --diff On Travis, only scans files changed
make checklanguage:
npx alex --quiet --why --diff
unittests: vendor/bin/phpunit
vendor/bin/phpunit --configuration test/phpunit.xml
# Perform all tests that don't require an install.
check: checkstatic unittests
testdata:
php tools/raisinbread_refresh.php
locales: $(MOFILES) $(I18NJSONFILES)
acknowledgements: $(filter modules/acknowledgements/%,$(MOFILES)) $(filter modules/acknowledgements/%,$(I18NJSONFILES))
target=acknowledgements npm run compile
create_timepoint: $(filter modules/create_timepoint/%,$(MOFILES)) $(filter modules/create_timepoint/%,$(I18NJSONFILES))
target=data_release npm run compile
data_release: $(filter modules/data_release/%,$(MOFILES)) $(filter modules/data_release/%,$(I18NJSONFILES))
target=data_release npm run compile
user_accounts: $(filter modules/user_accounts/%,$(MOFILES)) $(filter modules/user_accounts/%,$(I18NJSONFILES))
target=user_accounts npm run compile
instrument_manager: $(filter modules/instrument_manager/%,$(MOFILES)) $(filter modules/instrument_manager/%,$(I18NJSONFILES))
target=instrument_manager npm run compile
instrument_builder: $(filter modules/instrument_builder/%,$(MOFILES)) $(filter modules/instrument_builder/%,$(I18NJSONFILES))
target=instrument_builder npm run compile
dataquery: $(filter modules/dataquery/%,$(MOFILES)) $(filter modules/dataquery/%,$(I18NJSONFILES))
target=dataquery npm run compile
login: $(filter modules/login/%,$(MOFILES)) $(filter modules/login/%,$(I18NJSONFILES))
target=login npm run compile
module_manager: $(filter modules/module_manager/%,$(MOFILES)) $(filter modules/module_manager/%,$(I18NJSONFILES))
target=module_manager npm run compile
mri_violations: $(filter modules/mri_violations/%,$(MOFILES)) $(filter modules/mri_violations/%,$(I18NJSONFILES))
target=mri_violations npm run compile
issue_tracker: $(filter modules/issue_tracker/%,$(MOFILES)) $(filter modules/issue_tracker/%,$(I18NJSONFILES))
target=issue_tracker npm run compile
candidate_list: $(filter modules/candidate_list/%,$(MOFILES)) $(filter modules/candidate_list/%,$(I18NJSONFILES))
target=candidate_list npm run compile
candidate_parameters: $(filter modules/candidate_parameters/%,$(MOFILES)) $(filter modules/candidate_parameters/%,$(I18NJSONFILES))
target=candidate_parameters npm run compile
dashboard: $(filter modules/dashboard/%,$(MOFILES)) $(filter modules/dashboard/%,$(I18NJSONFILES))
target=dashboard npm run compile
brainbrowser: $(filter modules/brainbrowser/%,$(MOFILES)) $(filter modules/brainbrowser/%,$(I18NJSONFILES))
target=brainbrowser npm run compile
timepoint_list: $(filter modules/timepoint_list/%,$(MOFILES)) $(filter modules/timepoint_list/%,$(I18NJSONFILES))
target=timepoint_list npm run compile
schedule_module: $(filter modules/schedule_module/%,$(MOFILES)) $(filter modules/schedule_module/%,$(I18NJSONFILES))
target=schedule_module npm run compile
behavioural_qc: $(filter modules/behavioural_qc/%,$(MOFILES)) $(filter modules/behavioural_qc/%,$(I18NJSONFILES))
target=behavioural_qc npm run compile
publication: $(filter modules/publication/%,$(MOFILES)) $(filter modules/publication/%,$(I18NJSONFILES))
target=publication npm run compile
server_processes_manager: $(filter modules/server_processes_manager/%,$(MOFILES)) $(filter modules/server_processes_manager/%,$(I18NJSONFILES))
target=server_processes_manager npm run compile
conflict_resolver: $(filter modules/conflict_resolver/%,$(MOFILES)) $(filter modules/conflict_resolver/%,$(I18NJSONFILES))
target=conflict_resolver npm run compile
my_preferences: $(filter modules/my_preferences/%,$(MOFILES)) $(filter modules/my_preferences/%,$(I18NJSONFILES))
target=my_preferences npm run compile
electrophysiology_browser: $(filter modules/electrophysiology_browser/%,$(MOFILES)) $(filter modules/electrophysiology_browser/%,$(I18NJSONFILES))
target=electrophysiology_browser npm run compile
survey_accounts: $(filter modules/survey_accounts/%,$(MOFILES)) $(filter modules/survey_accounts/%,$(I18NJSONFILES))
target=survey_accounts npm run compile
dicom_archive: $(filter modules/dicom_archive/%,$(MOFILES)) $(filter modules/dicom_archive/%,$(I18NJSONFILES))
target=dicom_archive npm run compile
configuration: $(filter modules/configuration/%,$(MOFILES)) $(filter modules/configuration/%,$(I18NJSONFILES))
target=configuration npm run compile