Makefile.am 937 Bytes
Newer Older
1 2
ACLOCAL_AMFLAGS = -I m4

Stefan Hoeche's avatar
Stefan Hoeche committed
3
SUBDIRS       = \
4 5 6 7
		ATOOLS \
		BEAM \
		PDF \
		MODEL \
8
		METOOLS \
9
		PHASIC++ \
10
		MCATNLO \
11 12
		EXTRA_XS \
		AMEGIC++ \
13 14
		COMIX \
		CSSHOWER++ \
Stefan Hoeche's avatar
Stefan Hoeche committed
15
		DIRE \
16
		DIM \
17
		EXTAMP \
18 19 20 21
		AMISIC++ \
		AHADIC++ \
		HADRONS++ \
		PHOTONS++ \
22
		REMNANTS \
Hendrik Hoeth's avatar
Hendrik Hoeth committed
23
		SHRiMPS \
24
		SHERPA \
25
		AddOns \
26
		Manual \
27
		Examples
28

29
EXTRA_DIST = GUIDELINES
30 31

fastinstall:
32 33 34
	awk 'function install(){ \
  if (old!="") system("cd "old"; make install; cd -"); \
  old=""; }BEGIN{ n=0; "pwd" | getline cur[n]; \
35
  cmd="$(MAKE); echo EXIT $$?"; \
36 37 38 39 40
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; \
41 42 43
  if ((match($$0,"CXX")>0 ||  \
       match($$0,"CXXLD")>0 ||  \
       match($$0,"mode=compile")>0 ||  \
44
       match($$0,"mode=link")>0)) old=cur[n]; \
45 46 47
}}END{ close(cmd); if (ret==0) install(); }'

fi: fastinstall