Commit dcf46e0
committed
Add a makefile wrapper to avoid double -f while doing make
Makefile wrapper used in case of madevent to join together both makefile_orig
and cudacpp_overlay.mk. This is to avoid doing make -f makefile -f cudacpp.mk,
keeping the possibility to just do `make`:
- makefile (after code generation by MadGraph) is renamed to makefile_original.mk
- makefile_wrapper.mk (copied from cudacpp) is symlinked as makefile
The logic is: in each SubProcesses/P* directory we have
- makefile -> ../makefile (this is the original makefile)
- cudacpp_overlay.mk -> ../cudacpp_overlay.mk
While in the SubProcesses directory we had to:
- makefile (this is the original makefile)
- cudacpp_overlay.mk
- makefile_wrapper.mk
So, in each SubProcesses/P* we had to (done in model_handling.py) symlink from
SubProcesses/P*/makefile_original.mk to SubProcesses/makefile_original.mk
(it will be broken initially).
While in SubProcesses we had to (done in output.py):
- copy makefile to makefile_original.mk (this fixes the previous symlink)
- remove makefile
- symlink from makefile_wrapper.mk to makefile
So that now the situation in each SubProcesses/P* is:
- makefile -> ../makefile (this is the makefile_wrapper.mk)
- cudacpp_overlay.mk -> ../cudacpp_overlay.mk
- makefile_original.mk -> ../makefile_original.mk (this is the original makefile)1 parent 122c12f commit dcf46e0
File tree
6 files changed
+27
-28
lines changed- .github/workflows
- epochX/cudacpp/CODEGEN/PLUGIN/CUDACPP_SA_OUTPUT
- madgraph/iolibs/template_files/gpu
6 files changed
+27
-28
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
| 168 | + | |
175 | 169 | | |
176 | 170 | | |
177 | 171 | | |
| |||
Lines changed: 1 addition & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
| 43 | + | |
46 | 44 | | |
47 | 45 | | |
48 | 46 | | |
| |||
Lines changed: 11 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 9 | | |
16 | 10 | | |
17 | 11 | | |
| |||
205 | 199 | | |
206 | 200 | | |
207 | 201 | | |
208 | | - | |
| 202 | + | |
209 | 203 | | |
210 | 204 | | |
211 | 205 | | |
212 | 206 | | |
213 | | - | |
| 207 | + | |
214 | 208 | | |
215 | 209 | | |
216 | 210 | | |
217 | 211 | | |
218 | | - | |
| 212 | + | |
219 | 213 | | |
220 | 214 | | |
221 | 215 | | |
| |||
224 | 218 | | |
225 | 219 | | |
226 | 220 | | |
227 | | - | |
| 221 | + | |
228 | 222 | | |
229 | 223 | | |
230 | 224 | | |
| |||
253 | 247 | | |
254 | 248 | | |
255 | 249 | | |
256 | | - | |
| 250 | + | |
257 | 251 | | |
258 | 252 | | |
259 | 253 | | |
260 | | - | |
| 254 | + | |
261 | 255 | | |
262 | 256 | | |
263 | 257 | | |
264 | | - | |
| 258 | + | |
265 | 259 | | |
266 | 260 | | |
267 | 261 | | |
268 | | - | |
| 262 | + | |
269 | 263 | | |
270 | 264 | | |
271 | 265 | | |
272 | | - | |
| 266 | + | |
273 | 267 | | |
274 | 268 | | |
275 | 269 | | |
276 | | - | |
| 270 | + | |
277 | 271 | | |
278 | 272 | | |
279 | 273 | | |
280 | | - | |
| 274 | + | |
281 | 275 | | |
282 | 276 | | |
283 | 277 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1446 | 1446 | | |
1447 | 1447 | | |
1448 | 1448 | | |
| 1449 | + | |
| 1450 | + | |
1449 | 1451 | | |
1450 | 1452 | | |
1451 | 1453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
239 | 239 | | |
240 | 240 | | |
241 | 241 | | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
242 | 250 | | |
243 | 251 | | |
244 | 252 | | |
| |||
0 commit comments