Apply minor cleanup to mempool
[charm.git] / doc / Makefile
blobae9bb06b766332f60eedcdd928fe041c3e2b4b40
1 IDIR = ../doc
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
5 WEBDIR = /www/manuals
6 DIRS = converse convext charm++ libraries f90charm pose \
7 ampi bigsim projections tcharm debugger faq \
8 bignetsim charj
9 # charisma ## uncomment once the manual is updated
10 # fem ifem netfem mblock armci jade parfum ## dont build regularly. dormant manuals
12 all: pdf ps html
14 ps:
15 [ -d $(IDIR)/ps ] || mkdir $(IDIR)/ps
16 for d in $(DIRS); do (cd $$d; $(LNCMD); $(LN2CMD); $(MAKE) ps) || exit 1; done
18 pdf:
19 [ -d $(IDIR)/pdf ] || mkdir $(IDIR)/pdf
20 for d in $(DIRS); do (cd $$d; $(LNCMD); $(LN2CMD); $(MAKE) pdf) || exit 1; done
22 html:
23 [ -d $(IDIR)/html ] || mkdir $(IDIR)/html
24 for d in $(DIRS); do (cd $$d; $(LNCMD); $(LN2CMD); $(MAKE) html) || exit 1; done
26 doc:
27 for d in $(DIRS); do (cd $$d; $(LNCMD); $(LN2CMD); $(MAKE) doc) || exit 1; done
29 web: doc
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
40 clean:
41 for d in $(DIRS); do (cd $$d; $(RMCMD); $(MAKE) clean) || exit 1; done
42 rm -fr ps pdf html