"Fossies" - the Fresh Open Source Software Archive

Member "gretl-2020b/doc/tex/Makefile.in" (29 Mar 2020, 8646 Bytes) of package /linux/misc/gretl-2020b.tar.xz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "Makefile.in": 2020a_vs_2020b.

    1 topsrc = @top_srcdir@
    2 docsrc = $(topsrc)/doc
    3 texsrc = $(topsrc)/doc/tex
    4 tooldir = $(topsrc)/tools
    5 prefix = @prefix@
    6 datarootdir = @datarootdir@
    7 win32pkg = @win32pkg@
    8 
    9 ifeq ($(win32pkg),yes)
   10   docdir = $(prefix)/doc
   11 else
   12   docdir = $(datarootdir)/gretl/doc
   13 endif
   14 
   15 MAKE = @MAKE@
   16 INSTALL_DATA = cp -fp
   17 
   18 GUIDE = gretl-guide.pdf
   19 REF = gretl-ref.pdf
   20 HANSL = hansl-primer.pdf
   21 PKGBOOK = pkgbook.pdf
   22 MPIDOC = gretl-mpi.pdf
   23 MIDASDOC = midas-gretl.pdf
   24 SVMDOC = gretl-svm.pdf
   25 KBD = gretl-keys.pdf
   26 US = $(GUIDE) $(REF) $(HANSL) $(PKGBOOK) $(MPIDOC) $(MIDASDOC) $(SVMDOC) $(KBD)
   27 
   28 ALTGUIDE = gretl-guide-a4.pdf
   29 ALTREF = gretl-ref-a4.pdf
   30 ALTHANSL = hansl-primer-a4.pdf
   31 ALTPKGBOOK = pkgbook-a4.pdf
   32 ALTMPIDOC = gretl-mpi-a4.pdf
   33 ALTMIDASDOC = midas-gretl-a4.pdf
   34 ALTSVMDOC = gretl-svm-a4.pdf
   35 ALTKBD = gretl-keys-a4.pdf
   36 A4 = $(ALTGUIDE) $(ALTREF) $(ALTHANSL) $(ALTPKGBOOK) $(ALTMPIDOC) $(ALTMIDASDOC) \
   37  $(ALTSVMDOC) $(ALTKBD)
   38 
   39 GUIDETEX = gretl-guide.tex \
   40 	introduction.tex \
   41 	starting.tex \
   42 	modes.tex \
   43 	datafiles.tex \
   44 	sampling.tex \
   45 	graphs.tex \
   46 	join.tex \
   47 	realtime.tex \
   48 	genr.tex \
   49 	datatypes.tex \
   50 	discrete.tex \
   51 	looping.tex \
   52 	functions.tex \
   53 	persistent.tex \
   54 	string_series.tex \
   55 	matrices.tex \
   56 	complex_matrices.tex \
   57 	calendar.tex \
   58 	cheatsheet.tex \
   59 	robust_vcv.tex \
   60 	panel.tex \
   61 	dpanel.tex \
   62 	nls.tex \
   63 	mle.tex \
   64 	gmm.tex \
   65 	criteria.tex \
   66 	df.tex \
   67 	tsfilter.tex \
   68 	timeseries.tex \
   69 	var.tex \
   70 	vecm.tex \
   71 	system.tex \
   72 	forecast.tex \
   73 	kalman.tex \
   74 	numerical.tex \
   75 	probit.tex \
   76 	quantreg.tex \
   77 	nonparam.tex \
   78 	odbc.tex \
   79 	gretltex.tex \
   80 	gretlR.tex \
   81 	gretlOx.tex \
   82 	gretlOctave.tex \
   83 	gretlStata.tex \
   84 	gretlPython.tex \
   85 	gretlJulia.tex \
   86 	trouble.tex \
   87 	cli.tex \
   88 	appendices.tex
   89 
   90 REFTEX = gretl-ref.tex \
   91 	cmdref.tex \
   92 	optshort.tex \
   93 	funcref.tex \
   94 	operators.tex \
   95 	comments.tex \
   96 	optarg.tex \
   97 	reftables.tex
   98 
   99 HPTEX = hansl-primer.tex \
  100 	hp-hello.tex \
  101 	hp-matrices.tex \
  102 	hp-output.tex \
  103 	hp-bundles.tex \
  104 	hp-numerical.tex \
  105 	hp-ctrlflow.tex \
  106 	hp-functions.tex \
  107 	hp-dataset.tex \
  108 	hp-series.tex \
  109 	hp-estimate.tex \
  110 	hp-reference.tex \
  111 	operators.tex \
  112 	hp-greeks.tex
  113 
  114 PKGTEX = pkgbook.tex
  115 MPITEX = gretl-mpi.tex
  116 MIDASTEX = midas-gretl.tex
  117 SVMTEX = gretl-svm.tex
  118 KBDTEX = gretl-keys.tex
  119 
  120 BIBSRC = gretl.bib gretl.bst biblio.tex
  121 STYSRC = gretl.sty gretl-lite.sty
  122 
  123 # generated TeX files required by Guide
  124 GENTEX1 = tabnonloopcmds.tex matfuncs.tex
  125 
  126 # generated TeX files needed by Reference
  127 GENTEX2 = tabinternals.tex tabfunctions.tex tabloopcmds.tex \
  128 	funcbody.tex refbody.tex cmdtopics.tex
  129 
  130 ALLSRC = $(wildcard $(docsrc)/tex/*.tex) $(STYSRC)
  131 
  132 all: $(GUIDE) $(REF) $(HANSL) $(PKGBOOK) $(MPIDOC) $(SVMDOC) $(KBD) \
  133 	$(ALTGUIDE) $(ALTREF) $(ALTHANSL) $(ALTPKGBOOK) $(ALTMPIDOC) $(ALTSVMDOC) $(ALTKBD)
  134 
  135 $(GUIDE): $(GUIDETEX) $(GENTEX1) date.tex $(STYSRC) $(BIBSRC) | figlink
  136 	pdflatex $<
  137 	bibtex gretl-guide
  138 	pdflatex $<
  139 	bibtex gretl-guide
  140 	pdflatex $<
  141 	pdflatex $<
  142 
  143 $(REF): $(REFTEX) $(GENTEX2) date.tex $(STYSRC) $(BIBSRC) | figlink
  144 	pdflatex $<
  145 	bibtex gretl-ref
  146 	pdflatex $<
  147 	bibtex gretl-ref
  148 	pdflatex $<
  149 	pdflatex $<
  150 
  151 $(HANSL): $(HPTEX) date.tex $(STYSRC) | figlink
  152 	pdflatex $<
  153 	pdflatex $<
  154 	pdflatex $<
  155 
  156 $(PKGBOOK): $(PKGTEX) date.tex $(STYSRC) | figlink
  157 	pdflatex $<
  158 	bibtex pkgbook
  159 	pdflatex $<
  160 	pdflatex $<
  161 
  162 $(MPIDOC): $(MPITEX) date.tex $(STYSRC) | figlink
  163 	pdflatex $<
  164 	pdflatex $<
  165 
  166 $(MIDASDOC): $(MIDASTEX) date.tex $(STYSRC) | figlink
  167 	pdflatex $<
  168 	bibtex midas-gretl
  169 	pdflatex $<
  170 	pdflatex $<
  171 
  172 $(SVMDOC): $(SVMTEX) $(STYSRC) | figlink
  173 	pdflatex $<
  174 	bibtex gretl-svm
  175 	pdflatex $<
  176 	pdflatex $<
  177 
  178 $(KBD): $(KBDTEX) $(STYSRC)
  179 	pdflatex $<
  180 
  181 $(ALTGUIDE): $(GUIDETEX) gretl-guide-a4.tex $(GENTEX1) date.tex $(STYSRC) $(BIBSRC)
  182 	pdflatex gretl-guide-a4
  183 	bibtex gretl-guide-a4
  184 	pdflatex gretl-guide-a4
  185 	bibtex gretl-guide-a4
  186 	pdflatex gretl-guide-a4
  187 	pdflatex gretl-guide-a4
  188 
  189 $(ALTREF): $(REFTEX) gretl-ref-a4.tex $(GENTEX2) date.tex $(STYSRC) $(BIBSRC)
  190 	pdflatex gretl-ref-a4
  191 	bibtex gretl-ref-a4
  192 	pdflatex gretl-ref-a4
  193 	bibtex gretl-ref-a4
  194 	pdflatex gretl-ref-a4
  195 	pdflatex gretl-ref-a4
  196 
  197 $(ALTHANSL): $(HPTEX) hansl-primer-a4.tex date.tex $(STYSRC)
  198 	pdflatex hansl-primer-a4
  199 	pdflatex hansl-primer-a4
  200 	pdflatex hansl-primer-a4
  201 
  202 $(ALTPKGBOOK): $(PKGTEX) pkgbook-a4.tex date.tex $(STYSRC)
  203 	pdflatex pkgbook-a4
  204 	bibtex pkgbook-a4
  205 	pdflatex pkgbook-a4
  206 	pdflatex pkgbook-a4
  207 
  208 $(ALTMPIDOC): $(MPITEX) gretl-mpi-a4.tex date.tex $(STYSRC)
  209 	pdflatex gretl-mpi-a4
  210 	pdflatex gretl-mpi-a4
  211 
  212 $(ALTMIDASDOC): $(MIDASTEX) midas-gretl-a4.tex date.tex $(STYSRC)
  213 	pdflatex midas-gretl-a4
  214 	bibtex midas-gretl-a4
  215 	pdflatex midas-gretl-a4
  216 	pdflatex midas-gretl-a4
  217 
  218 $(ALTSVMDOC): $(SVMTEX) gretl-svm-a4.tex $(STYSRC)
  219 	pdflatex gretl-svm-a4
  220 	bibtex gretl-svm-a4
  221 	pdflatex gretl-svm-a4
  222 	pdflatex gretl-svm-a4
  223 
  224 $(ALTKBD): $(KBDTEX) gretl-keys-a4.tex $(STYSRC)
  225 	pdflatex gretl-keys-a4
  226 
  227 gretl-ref.bbl: $(REF)
  228 
  229 matfuncs.tex:
  230 	make -C ../commands ../tex/$@
  231 
  232 tabinternals.tex:
  233 	make -C ../commands ../tex/$@
  234 
  235 tabfunctions.tex:
  236 	make -C ../commands ../tex/$@
  237 
  238 tabloopcmds.tex:
  239 	make -C ../commands ../tex/$@
  240 
  241 tabnonloopcmds.tex:
  242 	make -C ../commands ../tex/$@
  243 
  244 funcbody.tex:
  245 	make -C ../commands ../tex/$@
  246 
  247 refbody.tex:
  248 	make -C ../commands ../tex/$@
  249 
  250 cmdtopics.tex:
  251 	make -C ../commands ../tex/$@
  252 
  253 letter: $(GUIDE) $(REF) $(HANSL) $(PKGBOOK) $(MPIDOC) $(SVMDOC) $(KBD)
  254 
  255 a4: $(ALTGUIDE) $(ALTREF) $(ALTHANSL) $(ALTPKGBOOK) $(ALTMPIDOC) $(ALTSVMDOC) $(ALTKBD)
  256 
  257 gretl-guide-a4.tex: $(texsrc)/gretl-guide.tex ../commands/us2a4
  258 	../commands/us2a4 < $< > $@
  259 
  260 gretl-ref-a4.tex: $(texsrc)/gretl-ref.tex ../commands/us2a4
  261 	../commands/us2a4 < $< > $@
  262 
  263 hansl-primer-a4.tex: $(texsrc)/hansl-primer.tex ../commands/us2a4
  264 	../commands/us2a4 < $< > $@
  265 
  266 pkgbook-a4.tex: $(texsrc)/pkgbook.tex ../commands/us2a4
  267 	../commands/us2a4 < $< > $@
  268 
  269 gretl-mpi-a4.tex: $(texsrc)/gretl-mpi.tex ../commands/us2a4
  270 	../commands/us2a4 < $< > $@
  271 
  272 midas-gretl-a4.tex: $(texsrc)/midas-gretl.tex ../commands/us2a4
  273 	../commands/us2a4 < $< > $@
  274 
  275 gretl-svm-a4.tex: $(texsrc)/gretl-svm.tex ../commands/us2a4
  276 	../commands/us2a4 < $< > $@
  277 
  278 gretl-keys-a4.tex: $(texsrc)/gretl-keys.tex ../commands/us2a4
  279 	../commands/us2a4 < $< > $@
  280 
  281 $(GUIDETEX): | guidelink
  282 
  283 $(REFTEX): | reflink
  284 
  285 $(HPTEX): | hplink
  286 
  287 $(PKGTEX): | pkglink
  288 
  289 $(KBDTEX): | kbdlink
  290 
  291 $(MPITEX): | mpilink
  292 
  293 $(MIDASTEX): | midaslink
  294 
  295 $(SVMTEX): | svmlink
  296 
  297 $(BIBSRC): | biblink
  298 
  299 $(STYSRC): | stylink
  300 
  301 ../commands/us2a4:
  302 	$(MAKE) -C ../commands us2a4
  303 
  304 date.tex: $(ALLSRC)
  305 	LANG=en_US date "+%B, %Y" > $@
  306 
  307 .PHONY : guidelink reflink hplink pkglink biblink stylink kbdlink \
  308 	figlink mpilink midaslink svmlink onepass refpass bibpass \
  309 	install installdirs install-us install-a4 clean distclean
  310 
  311 guidelink:
  312 	@for f in $(GUIDETEX) ; do \
  313 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  314 
  315 reflink:
  316 	@for f in $(REFTEX) ; do \
  317 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  318 
  319 hplink:
  320 	@for f in $(HPTEX) ; do \
  321 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  322 
  323 pkglink:
  324 	@for f in $(PKGTEX) ; do \
  325 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  326 
  327 biblink:
  328 	@for f in $(BIBSRC) ; do \
  329 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  330 
  331 kbdlink:
  332 	@for f in $(KBDTEX) ; do \
  333 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  334 
  335 mpilink:
  336 	@for f in $(MPITEX) ; do \
  337 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  338 
  339 midaslink:
  340 	@for f in $(MIDASTEX) ; do \
  341 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  342 
  343 svmlink:
  344 	@for f in $(SVMTEX) ; do \
  345 	if [ ! -f $$f ] || [ $(texsrc)/$$f -nt $$f ] ; then ln -sf $(texsrc)/$$f . ; fi ; done
  346 
  347 stylink:
  348 	@for f in $(STYSRC) ; do \
  349 	if [ ! -f $$f ] || [ ../$$f -nt $$f ] ; then ln -sf ../$$f . ; fi ; done
  350 
  351 figlink:
  352 	@if [ ! -d figures ] || [ $(docsrc)/figures -nt figures ] ; then \
  353 	rm -rf figures && ln -s $(docsrc)/figures ./figures ; fi
  354 
  355 onepass: $(GUIDETEX) $(GENTEX1)
  356 	pdflatex $<
  357 
  358 refpass: $(REFTEX) $(GENTEX2)
  359 	pdflatex $<
  360 
  361 bibpass: onepass refpass
  362 	bibtex gretl-guide
  363 	bibtex gretl-ref
  364 
  365 install: all | installdirs
  366 	for f in *.pdf ; do \
  367 	$(INSTALL_DATA) $$f $(DESTDIR)$(docdir) ; done
  368 
  369 install-us: $(US) | installdirs
  370 	for f in $(US) ; do \
  371 	$(INSTALL_DATA) $$f $(DESTDIR)$(docdir) ; done
  372 
  373 install-a4: $(A4) | installdirs
  374 	for f in $(A4) ; do \
  375 	$(INSTALL_DATA) $$f $(DESTDIR)$(docdir) ; done
  376 
  377 installdirs:
  378 	$(tooldir)/mkinstalldirs $(DESTDIR)$(docdir)
  379 
  380 clean:
  381 	rm -f *.aux *.log *.out *.toc *.pdf *.bbl *.blg
  382 	rm -f $(GENTEX1) $(GENTEX2) *-a4.tex date.tex
  383 
  384 distclean: clean
  385 	rm -f Makefile