Avoid declaring variables with C linkage
[charm.git] / doc / Makefile
blobc1c7937a33616d304b8689dac4d5f621bf9b72bf
1 IDIR = ../doc
2 LNCMD = test ! -f pplmanual.sty && ln -f -s ../pplmanual.sty .
3 RMCMD = rm -f ./pplmanual.sty
4 WEBDIR = /www/manuals
5 DIRS = converse convext charm++ libraries f90charm pose \
6 ampi bigsim projections tcharm debugger faq \
7 bignetsim charj
8 # charisma ## uncomment once the manual is updated
9 # fem ifem netfem mblock armci jade parfum ## dont build regularly. dormant manuals
11 all: pdf ps html
13 ps:
14 [ -d $(IDIR)/ps ] || mkdir $(IDIR)/ps
15 for d in $(DIRS); do (cd $$d; $(LNCMD); $(MAKE) ps) || exit 1; done
17 pdf:
18 [ -d $(IDIR)/pdf ] || mkdir $(IDIR)/pdf
19 for d in $(DIRS); do (cd $$d; $(LNCMD); $(MAKE) pdf) || exit 1; done
21 html:
22 [ -d $(IDIR)/html ] || mkdir $(IDIR)/html
23 for d in $(DIRS); do (cd $$d; $(LNCMD); $(MAKE) html) || exit 1; done
25 doc:
26 for d in $(DIRS); do (cd $$d; $(LNCMD); $(MAKE) doc) || exit 1; done
28 web: doc
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
39 clean:
40 for d in $(DIRS); do (cd $$d; $(RMCMD); $(MAKE) clean) || exit 1; done
41 rm -fr ps pdf html