2 LNCMD
= test ! -f pplmanual.sty
&& ln
-f
-s ..
/pplmanual.sty .
3 LN2CMD
= test ! -f html.sty
&& ln
-f
-s ..
/html.sty .
4 RMCMD
= rm -f .
/pplmanual.sty .
/html.sty
6 DIRS
= converse convext charm
++ libraries f90charm pose \
7 ampi bigsim projections tcharm debugger faq \
9 # charisma ## uncomment once the manual is updated
10 # fem ifem netfem mblock armci jade parfum ## dont build regularly. dormant manuals
15 [ -d
$(IDIR
)/ps
] || mkdir
$(IDIR
)/ps
16 for d in
$(DIRS
); do
(cd
$$d; $(LNCMD
); $(LN2CMD
); $(MAKE
) ps
) || exit
1; done
19 [ -d
$(IDIR
)/pdf
] || mkdir
$(IDIR
)/pdf
20 for d in
$(DIRS
); do
(cd
$$d; $(LNCMD
); $(LN2CMD
); $(MAKE
) pdf
) || exit
1; done
23 [ -d
$(IDIR
)/html
] || mkdir
$(IDIR
)/html
24 for d in
$(DIRS
); do
(cd
$$d; $(LNCMD
); $(LN2CMD
); $(MAKE
) html
) || exit
1; done
27 for d in
$(DIRS
); do
(cd
$$d; $(LNCMD
); $(LN2CMD
); $(MAKE
) doc
) || exit
1; done
30 -rm -rf
$(WEBDIR
)/backup
31 mkdir
-p
$(WEBDIR
)/backup
&& \
32 mv
$(WEBDIR
)/pdf
$(WEBDIR
)/html
$(WEBDIR
)/backup
33 cp
-r pdf html
$(WEBDIR
) && \
34 chgrp
-R kale
$(WEBDIR
)/pdf
$(WEBDIR
)/html
&& \
35 chmod
-R g
+w
$(WEBDIR
)/pdf
$(WEBDIR
)/html || \
36 { rm -rf
$(WEBDIR
)/pdf
$(WEBDIR
)/html
&& \
37 mv
$(WEBDIR
)/backup
/pdf
$(WEBDIR
)/backup
/html
$(WEBDIR
); }
38 -rm -rf
$(WEBDIR
)/backup
41 for d in
$(DIRS
); do
(cd
$$d; $(RMCMD
); $(MAKE
) clean) || exit
1; done