-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
43 lines (39 loc) · 894 Bytes
/
Makefile.am
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = \
ATOOLS \
BEAM \
PDF \
MODEL \
METOOLS \
PHASIC++ \
MCATNLO \
EXTRA_XS \
AMEGIC++ \
COMIX \
CSSHOWER++ \
DIRE \
AMISIC++ \
AHADIC++ \
HADRONS++ \
PHOTONS++ \
SHRiMPS \
SHERPA \
AddOns \
Examples
EXTRA_DIST = GUIDELINES
fastinstall:
awk 'function install(){ \
if (old!="") system("cd "old"; make install; cd -"); \
old=""; }BEGIN{ n=0; "pwd" | getline cur[n]; \
cmd="$(MAKE); echo EXIT $$?"; \
while (cmd | getline) { \
if ($$1=="EXIT") { ret=$$2; exit ret; }; \
if ($$2=="Entering") { install(); \
cur[n]=substr($$4,2,length($$4)-2); } \
if ($$2=="Leaving") --n; print $$0; \
if ((match($$0,"CXX")>0 || \
match($$0,"CXXLD")>0 || \
match($$0,"mode=compile")>0 || \
match($$0,"mode=link")>0)) old=cur[n]; \
}}END{ close(cmd); if (ret==0) install(); }'
fi: fastinstall