bug in stringification of data
[PsN.git] / Makefile
blob09c1abaabbfa608d1283199d91e286623a7a8762
1 DIAGRAMS=diagrams/llp.dia diagrams/tool.dia diagrams/model.dia diagrams/output.dia diagrams/data.dia diagrams/xrsl_file.dia diagrams/fcon.dia diagrams/nonmem.dia
2 DOCUMENTS=html/bootstrap_synopsis.php html/bootstrap_description.php html/bootstrap_options.php html/bootstrap_examples.php \
3 html/cdd_synopsis.php html/cdd_description.php html/cdd_options.php html/cdd_examples.php \
4 html/execute_synopsis.php html/execute_description.php html/execute_options.php html/execute_examples.php \
5 html/llp_synopsis.php html/llp_description.php html/llp_options.php html/llp_examples.php \
6 html/scm_synopsis.php html/scm_description.php html/scm_options.php html/scm_examples.php
7 DIA2CODE=dia2code
8 FILLSCRIPT=./bin/fill_diacode.pl
9 DIRPM=libgen/
10 DIRSUBS=lib/
11 PERLDIRS=-I/home/pontus/perl
12 PERLFILES=lib/debug.pm \
13 lib/ui.pm \
14 lib/nonmem.pm \
15 lib/file.pm \
16 lib/data/individual.pm \
17 lib/data.pm \
18 lib/output/problem/subproblem.pm \
19 lib/output/problem.pm \
20 lib/output.pm \
21 lib/grid/nordugrid/xrsl_file.pm \
22 lib/fcon.pm \
23 lib/table_file.pm \
24 lib/extra_data.pm \
25 lib/model/problem/record/option.pm \
26 lib/model/problem/record/init_option.pm \
27 lib/model/problem/record/theta_option.pm \
28 lib/model/problem/record.pm \
29 lib/model/problem/code_record.pm \
30 lib/model/problem/init_record.pm \
31 lib/model/problem/abbreviated.pm \
32 lib/model/problem/aes.pm \
33 lib/model/problem/aesinit.pm \
34 lib/model/problem/contr.pm \
35 lib/model/problem/covariance.pm \
36 lib/model/problem/data.pm \
37 lib/model/problem/des.pm \
38 lib/model/problem/error.pm \
39 lib/model/problem/estimation.pm \
40 lib/model/problem/infn.pm \
41 lib/model/problem/input.pm \
42 lib/model/problem/msfi.pm \
43 lib/model/problem/mix.pm \
44 lib/model/problem/model.pm \
45 lib/model/problem/nonparametric.pm \
46 lib/model/problem/omega.pm \
47 lib/model/problem/pk.pm \
48 lib/model/problem/problem.pm \
49 lib/model/problem/pred.pm \
50 lib/model/problem/scatter.pm \
51 lib/model/problem/sigma.pm \
52 lib/model/problem/simulation.pm \
53 lib/model/problem/subroutine.pm \
54 lib/model/problem/table.pm \
55 lib/model/problem/theta.pm \
56 lib/model/problem/tol.pm \
57 lib/model/problem.pm \
58 lib/model.pm \
59 lib/tool.pm \
60 lib/tool/modelfit.pm \
61 lib/tool/llp.pm \
62 lib/tool/cdd.pm \
63 lib/tool/cdd/jackknife.pm \
64 lib/tool/bootstrap.pm \
65 lib/tool/scm/config_file.pm \
66 lib/tool/scm.pm \
67 lib/tool/xv_step.pm \
68 lib/tool/xv.pm \
70 RELFILES=PsN-Source/lib/PsN_template.pm \
71 PsN-Source/lib/debug.pm \
72 PsN-Source/lib/ui.pm \
73 PsN-Source/lib/nonmem.pm \
74 PsN-Source/lib/file.pm \
75 PsN-Source/lib/data/individual.pm \
76 PsN-Source/lib/data.pm \
77 PsN-Source/lib/output/problem/subproblem.pm \
78 PsN-Source/lib/output/problem.pm \
79 PsN-Source/lib/output.pm \
80 PsN-Source/lib/grid/nordugrid/xrsl_file.pm \
81 PsN-Source/lib/fcon.pm \
82 PsN-Source/lib/table_file.pm \
83 PsN-Source/lib/extra_data.pm \
84 PsN-Source/lib/model/problem/record/option.pm \
85 PsN-Source/lib/model/problem/record/init_option.pm \
86 PsN-Source/lib/model/problem/record/theta_option.pm \
87 PsN-Source/lib/model/problem/record.pm \
88 PsN-Source/lib/model/problem/code_record.pm \
89 PsN-Source/lib/model/problem/init_record.pm \
90 PsN-Source/lib/model/problem/abbreviated.pm \
91 PsN-Source/lib/model/problem/aes.pm \
92 PsN-Source/lib/model/problem/aesinit.pm \
93 PsN-Source/lib/model/problem/contr.pm \
94 PsN-Source/lib/model/problem/covariance.pm \
95 PsN-Source/lib/model/problem/data.pm \
96 PsN-Source/lib/model/problem/des.pm \
97 PsN-Source/lib/model/problem/error.pm \
98 PsN-Source/lib/model/problem/estimation.pm \
99 PsN-Source/lib/model/problem/infn.pm \
100 PsN-Source/lib/model/problem/input.pm \
101 PsN-Source/lib/model/problem/msfi.pm \
102 PsN-Source/lib/model/problem/mix.pm \
103 PsN-Source/lib/model/problem/model.pm \
104 PsN-Source/lib/model/problem/nonparametric.pm \
105 PsN-Source/lib/model/problem/omega.pm \
106 PsN-Source/lib/model/problem/pk.pm \
107 PsN-Source/lib/model/problem/problem.pm \
108 PsN-Source/lib/model/problem/pred.pm \
109 PsN-Source/lib/model/problem/scatter.pm \
110 PsN-Source/lib/model/problem/sigma.pm \
111 PsN-Source/lib/model/problem/simulation.pm \
112 PsN-Source/lib/model/problem/subroutine.pm \
113 PsN-Source/lib/model/problem/table.pm \
114 PsN-Source/lib/model/problem/theta.pm \
115 PsN-Source/lib/model/problem/tol.pm \
116 PsN-Source/lib/model/problem.pm \
117 PsN-Source/lib/model.pm \
118 PsN-Source/lib/tool.pm \
119 PsN-Source/lib/tool/modelfit.pm \
120 PsN-Source/lib/tool/llp.pm \
121 PsN-Source/lib/tool/cdd.pm \
122 PsN-Source/lib/tool/cdd/jackknife.pm \
123 PsN-Source/lib/tool/bootstrap.pm \
124 PsN-Source/lib/tool/scm/config_file.pm \
125 PsN-Source/lib/tool/scm.pm \
126 PsN-Source/lib/tool/xv_step.pm \
127 PsN-Source/lib/tool/xv.pm \
128 PsN-Source/lib/common_options.pm \
129 PsN-Source/lib/psn.conf \
130 PsN-Source/setup.pl \
131 PsN-Source/bin/execute \
132 PsN-Source/bin/cdd \
133 PsN-Source/bin/llp \
134 PsN-Source/bin/scm \
135 PsN-Source/bin/bootstrap \
136 PsN-Source/bin/sumo \
137 PsN-Source/bin/single_valued_columns \
138 PsN-Source/bin/create_extra_data_model \
139 PsN-Source/bin/create_cont_model \
140 PsN-Source/bin/create_cont_data \
141 PsN-Source/bin/unwrap_data \
142 PsN-Source/bin/data_stats \
143 PsN-Source/bin/gam42toconf \
144 PsN-Source/lib/OSspecific.pm \
145 PsN-Source/lib/hotkey.pm \
146 PsN-Source/README.txt \
147 PsN-Source/lib/ext/Math/SigFigs.pm \
148 PsN-Source/lib/ext/Math/MatrixReal.pm \
149 PsN-Source/lib/ext/Statistics/Distributions.pm \
150 PsN-Source/lib/ext/Parallel/ForkManager.pm \
151 PsN-Source/lib/ext/Config/Tiny.pm \
152 PsN-Source/lib/ext/Color/Output.pm \
153 PsN-Source/lib/ext/File/HomeDir.pm \
154 PsN-Source/lib/ext/IPC/Run3.pm
156 RELDIRS=PsN-Source \
157 PsN-Source/bin \
158 PsN-Source/lib \
159 PsN-Source/lib/data \
160 PsN-Source/lib/output/problem/ \
161 PsN-Source/lib/model/problem/record \
162 PsN-Source/lib/tool/scm \
163 PsN-Source/lib/tool/cdd \
164 PsN-Source/lib/grid/nordugrid \
165 PsN-Source/modules \
166 PsN-Source/lib/ext \
167 PsN-Source/lib/ext/Math \
168 PsN-Source/lib/ext/Statistics \
169 PsN-Source/lib/ext/Parallel \
170 PsN-Source/lib/ext/IPC \
171 PsN-Source/lib/ext/Config \
172 PsN-Source/lib/ext/File \
173 PsN-Source/lib/ext/Color
175 GENFILES=libgen/debug.pm \
176 libgen/ui.pm \
177 libgen/nonmem.pm \
178 libgen/file.pm \
179 libgen/tool.pm \
180 libgen/tool/modelfit.pm \
181 libgen/tool/llp.pm \
182 libgen/tool/cdd.pm \
183 libgen/tool/cdd/jackknife.pm \
184 libgen/tool/bootstrap.pm \
185 libgen/tool/scm/config_file.pm \
186 libgen/tool/scm.pm \
187 libgen/tool/xv_step.pm \
188 libgen/tool/xv.pm \
189 libgen/model/problem/record/option.pm \
190 libgen/model/problem/record/init_option.pm \
191 libgen/model/problem/record/theta_option.pm \
192 libgen/model/problem/record.pm \
193 libgen/model/problem/code_record.pm \
194 libgen/model/problem/init_record.pm \
195 libgen/model/problem/abbreviated.pm \
196 libgen/model/problem/aes.pm \
197 libgen/model/problem/aesinit.pm \
198 libgen/model/problem/contr.pm \
199 libgen/model/problem/covariance.pm \
200 libgen/model/problem/data.pm \
201 libgen/model/problem/des.pm \
202 libgen/model/problem/error.pm \
203 libgen/model/problem/estimation.pm \
204 libgen/model/problem/infn.pm \
205 libgen/model/problem/input.pm \
206 libgen/model/problem/msfi.pm \
207 libgen/model/problem/mix.pm \
208 libgen/model/problem/model.pm \
209 libgen/model/problem/nonparametric.pm \
210 libgen/model/problem/omega.pm \
211 libgen/model/problem/pk.pm \
212 libgen/model/problem/problem.pm \
213 libgen/model/problem/pred.pm \
214 libgen/model/problem/scatter.pm \
215 libgen/model/problem/sigma.pm \
216 libgen/model/problem/simulation.pm \
217 libgen/model/problem/subroutine.pm \
218 libgen/model/problem/table.pm \
219 libgen/model/problem/theta.pm \
220 libgen/model/problem/tol.pm \
221 libgen/model/problem.pm \
222 libgen/model.pm \
223 libgen/data/individual.pm \
224 libgen/data.pm \
225 libgen/output/problem/subproblem.pm \
226 libgen/output/problem.pm \
227 libgen/output.pm \
228 libgen/table_file.pm \
229 libgen/extra_data.pm \
230 libgen/grid/nordugrid/xrsl_file.pm \
231 libgen/fcon.pm
233 all: libgen $(PERLFILES)
235 .SECONDARY: $(GENFILES)
237 libgen:
238 @ mkdir -p libgen
240 lib/%.pm: libgen/%.pm lib/%_subs.pm
241 @ cp libgen/$*.pm libgen/$*_temp.pm
242 @ $(FILLSCRIPT) libgen/$*_temp.pm lib/$*_subs.pm
243 @ cp libgen/$*_temp.pm $@
244 @ perl $(PERLDIRS) -I./$(@D) -I./lib -c $@ -W -t -T|| (rm $@ && false)
246 .PHONY : clean
247 clean:
248 @-rm -rf $(PERLFILES) $(GENFILES) $(DOCUMENTS) libgen PsN-Source
250 libgen/debug.pm : diagrams/debug.dia
251 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/debug.dia
253 libgen/ui.pm : diagrams/ui.dia
254 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/ui.dia
256 libgen/nonmem.pm : diagrams/nonmem.dia
257 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/nonmem.dia
259 libgen/file.pm : diagrams/file.dia
260 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/file.dia
262 libgen/tool/modelfit.pm : diagrams/modelfit.dia
263 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/modelfit.dia
265 libgen/tool/llp.pm : diagrams/llp.dia
266 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/llp.dia
268 libgen/tool/cdd/jackknife.pm libgen/tool/cdd.pm : diagrams/cdd.dia
269 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/cdd.dia
271 libgen/tool/bootstrap.pm : diagrams/bootstrap.dia
272 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/bootstrap.dia
274 libgen/tool/scm/config_file.pm libgen/tool/scm.pm : diagrams/scm.dia
275 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/scm.dia
277 libgen/tool/xv_step.pm libgen/tool/xv.pm : diagrams/xv.dia
278 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/xv.dia
280 libgen/tool.pm : diagrams/tool.dia
281 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/tool.dia
283 libgen/table_file.pm libgen/extra_data.pm libgen/model%.pm : diagrams/model.dia
284 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/model.dia
286 libgen/output%.pm : diagrams/output.dia
287 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/output.dia
289 libgen/data%.pm : diagrams/data.dia
290 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/data.dia
292 libgen/grid/nordugrid/xrsl_file.pm : diagrams/xrsl_file.dia
293 $(DIA2CODE) -t perl -d $(DIRPM) diagrams/xrsl_file.dia
295 libgen/fcon.pm : diagrams/fcon.dia
296 $(DIA2CODE) -nd -t perl -d $(DIRPM) diagrams/fcon.dia
298 documents: $(DOCUMENTS)
300 html/bootstrap_synopsis.php html/bootstrap_description.php html/bootstrap_options.php html/bootstrap_examples.php : bin/bootstrap
301 $^ --help --html
303 html/cdd_synopsis.php html/cdd_description.php html/cdd_options.php html/cdd_examples.php : bin/cdd
304 $^ --help --html
306 html/execute_synopsis.php html/execute_description.php html/execute_options.php html/execute_examples.php : bin/execute
307 $^ --help --html
309 html/llp_synopsis.php html/llp_description.php html/llp_options.php html/llp_examples.php : bin/llp
310 $^ --help --html
312 html/scm_synopsis.php html/scm_description.php html/scm_options.php html/scm_examples.php : bin/scm
313 $^ --help --html
316 release: $(RELDIRS) $(RELFILES) documents
317 @ cp -ar modules/Math-Random \
318 modules/Math-Random-Win \
319 modules/Storable PsN-Source/modules
320 @ zip -r PsN-Source PsN-Source/
321 @ tar czf PsN-Source.tar.gz PsN-Source/
323 PsN-Source/setup.pl: bin/setup.pl
324 @ cp bin/setup.pl $@
326 PsN-Source/%: %
327 @ cp -ar $* $@
329 $(RELDIRS):
330 @ mkdir -p $@