File: Makefile.in

package info (click to toggle)
gretl 2021a-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 57,556 kB
  • sloc: ansic: 394,030; sh: 4,494; makefile: 2,856; cpp: 2,776; xml: 590; perl: 364
file content (27 lines) | stat: -rw-r--r-- 814 bytes parent folder | download | duplicates (5)
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