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