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
|
topsrc = @top_srcdir@
TEXDIR = $(topsrc)/doc/tex
PKG = ivpanel
DOCDIR = $(topsrc)/addons/$(PKG)/doc
FIG = ivpanel-gui.png
SRCS = $(PKG).tex $(FIG) gretl.sty gretl.bst gretl.bib
$(PKG).pdf: $(SRCS)
@pdflatex $(PKG) && bibtex $(PKG) && pdflatex $(PKG) && pdflatex $(PKG)
@if grep 'Rerun to get' $(PKG).log ; then pdflatex $(PKG) ; fi
$(SRCS): | symlinks
.PHONY : symlinks clean
symlinks:
@if [ ! -f gretl.sty ] || [ ../../../doc/gretl.sty -nt gretl.sty ] ; then ln -sf ../../../doc/gretl.sty . ; fi
@for f in gretl.bst gretl.bib ; do \
if [ ! -f $$f ] || [ $(TEXDIR)/$$f -nt $$f ] ; then ln -sf $(TEXDIR)/$$f . ; fi ; done
@for f in $(PKG).tex $(FIG) ; do \
if [ ! -f $$f ] || [ $(DOCDIR)/$$f -nt $$f ] ; then ln -sf $(DOCDIR)/$$f . ; fi ; done
clean:
@rm -f *.log *.aux *.bbl *.blg *.toc $(PKG).pdf
|