~josejuan-sanchez/esajpip/debian

« back to all changes in this revision

Viewing changes to doc/Makefile

  • Committer: José Juan Sánchez Hernández
  • Date: 2013-04-02 18:14:26 UTC
  • Revision ID: josejuan.sanchez@gmail.com-20130402181426-07xn3djblburck53
Version for Debian

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SHELL=/bin/bash
 
2
 
 
3
FIGS = jpip_fig         \
 
4
        partition       \
 
5
        codestream      \
 
6
        architecture    \
 
7
        client_manager
 
8
        
 
9
%.eps %.tex: %.fig
 
10
                                fig2dev -L pstex $*.fig > $*.eps
 
11
                                (fig2dev -L pstex_t -p $* $< | sed 's/includegraphics{/includegraphics{..\//g') > $*.tex
 
12
 
 
13
%.pdf: %.eps
 
14
                                epstopdf $*.eps
 
15
        
 
16
doc: $(FIGS:%=%.pdf) documentation
 
17
 
 
18
clean:
 
19
        rm -rf *.pdf latex html doxyfile.ok
 
20
        rm -rf $(FIGS:%=%.pdf) $(FIGS:%=%.tex) $(FIGS:%=%.eps)
 
21
 
 
22
documentation:
 
23
        n=$$(cd ..; pwd) &&                     \
 
24
        cat doxyfile |                  \
 
25
                sed -e "s:__SRC_DIR__:$$n/src/:g" |     \
 
26
                sed -e "s:__DOC_DIR__:$$n/doc/:g"       \
 
27
                > doxyfile.ok &&                        \
 
28
        doxygen doxyfile.ok &&          \
 
29
        make -C latex &&                        \
 
30
        mv latex/refman.pdf .