1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135
|
## Process this file with automake to produce Makefile.in
AUTOMAKE_OPTIONS = parallel-tests
EXTRA_DIST = \
template.tex \
gfs2tex.py \
gfs2tex \
depend.py \
test.py \
Makefile.deps \
crossref.sh.in \
gfsxref \
gfs-mode.el \
modulesyms.sh \
gfs.sty gfs.hva kaltura.sh \
gfs.php.sh
bin_SCRIPTS = \
gfs2doc gfs-highlight gfsxref
BUILT_SOURCES= \
gfs2doc gfs-highlight gfs.lang gerris.dic gfs-keywords.el gfs.php
CLEANFILES = $(BUILT_SOURCES) Makefile.deps
pkgdata_DATA = gfs2tex.py gfs.lang gerris.dic gfs-keywords.el gfs-mode.el gfs.sty gfs.hva kaltura.sh gfs.php
gerris.dic: classes modulesyms.sh $(top_srcdir)/modules/Makefile.am modules.list
($(builddir)/classes && sh $(srcdir)/modulesyms.sh $(top_srcdir)/modules $(pkglibdir)) | LC_ALL=C sort > gerris.dic
gfs.lang: gerris.dic
echo "# Language file for source-highlight" > gfs.lang
echo "# Generated automatically by classes.c" >> gfs.lang
awk '{ printf ("classname = \"%s\"\n", $$1) }' < gerris.dic >> gfs.lang
echo "include \"/usr/share/source-highlight/cpp.lang\"" >> gfs.lang
echo "comment start \"#\"" >> gfs.lang
echo "redef preproc = \"C preprocessor command is not compatible with the use of # as comment character in GTS\"" >> gfs.lang
modules.list: modules $(top_srcdir)/modules/Makefile.am
$(builddir)/modules $(top_srcdir)/modules/*.la $(pkglibdir)/*.so | LC_ALL=C sort | uniq > modules.list
gfs-keywords.el: gerris.dic modules.list
echo "(defvar gfs-abbrevs '(" > gfs-keywords.el
awk '{ printf ("\"%s\"\n", $$1) }' < gerris.dic >> gfs-keywords.el
echo ")" >> gfs-keywords.el
echo "\"Gerris keywords automatically generated by classes.c.\")" >> gfs-keywords.el
echo "(defvar gfs-modules '(" >> gfs-keywords.el
awk '{ printf ("\"%s\"\n", $$1) }' < modules.list >> gfs-keywords.el
echo ")" >> gfs-keywords.el
echo "\"Gerris modules automatically generated by modules.c.\")" >> gfs-keywords.el
echo "(provide 'gfs-keywords)" >> gfs-keywords.el
gfs.php: gerris.dic modules.list gfs.php.sh
sh $(srcdir)/gfs.php.sh > gfs.php
gfs2doc: gfs2doc.in
gfs-highlight: gfs-highlight.in
clean-generic:
$(RM) *.dvi *.aux *.log *.toc *.out examples.tex *.pyc test.sh gfs2doc
$(RM) -r examples
DOC = examples
# we need this for bibtex
BIBINPUTS = $(top_srcdir)/doc
Makefile.deps: template.tex depend.py Makefile.am
python depend.py `grep \\test{[^/]*} < template.tex | sed 's/\\\\test{\(.*\)}/\1/g'` > Makefile.deps
echo "" >> Makefile.deps
echo -n "EXAMPLES = " >> Makefile.deps
echo `grep \\test{[^/]*} < template.tex | sed 's/\\\\test{\(.*\)}/\1/g'` >> Makefile.deps
include Makefile.deps
examples.tex: template.tex Makefile.deps gfs2tex gfs2tex.py
rm -r -f examples
python gfs2tex $(EXAMPLES)
sed -e "s/GFS_VERSION/`$(top_srcdir)/src/gerris2D -V 2>&1 | head -1 | cut -d' ' -f6-`/g" \
-e 's/\\test{\(.*\)\/\(.*\)}/\\input{\1\/\2\/\2.tex}/g' \
-e 's/\\test{\(.*\)}/\\input{\1\/\1.tex}/g' \
-e 's/\\today/'"`date +\"%B %e, %Y\"`/g" < template.tex > examples.tex
examples: examples.dvi crossref.sh
hevea -fix $(DOC).tex
imagen -res 600 -extra "pnmscale 0.24" $(DOC)
hacha $(DOC).html
rm -f $(DOC).html
mv -f $(DOC)[0-9][0-9][0-9].png $(DOC)
## fixme: the character conversion below is a workaround for a bug in hevea version < 1.09
## for f in *.html; do konwert iso1-utf8 < $$f > $(DOC)/$$f; rm -f $$f; done
mv -f *.html $(DOC)
cat $(DOC).css ../share/darcs.css > $(DOC)/$(DOC).css
for f in $(DOC)/*.html; do sh kaltura.sh $$f; done
sh ../share/fixnav.sh $(DOC)
cp -f ../share/contents.png ../share/next.png ../share/prev.png $(DOC)
rm -f *_motif.gif $(DOC).h{tml,aux,ind,toc} $(DOC).image.tex $(DOC).css
sh ./crossref.sh --url=http://gerris.dalembert.upmc.fr/gerris/examples/examples $(EXAMPLES)
mv references examples
examples.dvi: examples.tex $(top_srcdir)/doc/gerris.bib
- latex -interaction=nonstopmode examples.tex > /dev/null 2>&1
BIBINPUTS=$(BIBINPUTS) bibtex examples
- latex -interaction=nonstopmode examples.tex > /dev/null 2>&1
latex -interaction=nonstopmode examples.tex
examples.pdf: examples.dvi
dvips -Ppdf -G0 examples.dvi -o examples.ps
ps2pdf -sPAPERSIZE=a4 -dMaxSubsetPct=100 -dCompatibilityLevel=1.2 -dSubsetFonts=true -dEmbedAllFonts=true examples.ps examples.pdf
rm -f examples.ps
examples.tar.gz: examples.pdf examples $(DOCS)
tar czf examples.tar.gz examples $(DOCS)
rm -r -f examples
INCLUDES = -I$(top_srcdir)/src -I$(includedir) -DG_LOG_DOMAIN=\"Gfs-tools\"\
$(GTS_CFLAGS)
noinst_PROGRAMS = classes modules
classes_SOURCES = classes.c $(top_srcdir)/src/init.c
classes_CFLAGS = $(AM_CFLAGS) -DFTT_2D=1
classes_CPPFLAGS = $(INCLUDES) -I$(top_builddir)/src
classes_LDADD = $(GFS2D_LIBS)
modules_SOURCES = modules.c
modules_CFLAGS = $(AM_CFLAGS) -DFTT_2D=1
modules_CPPFLAGS = $(INCLUDES)
modules_LDADD = $(GFS2D_LIBS)
publish: examples.tar.gz
cp examples.tar.gz $(WEBROOT)/examples
cd $(WEBROOT)/examples && tar xzf examples.tar.gz && rm -f examples.tar.gz
|