| 1 |
# Makefile -- Makefile for libmaa documentation |
| 2 |
# Created: Sun Jan 8 21:44:38 1995 by [email protected] |
| 3 |
# Revised: Wed May 21 00:56:52 1997 by [email protected] |
| 4 |
# Tue Nov 14 22:28:59 2017 by [email protected] |
| 5 |
# Copyright 1995, 1996, 1997 Rickard E. Faith ([email protected]) |
| 6 |
# Copyright 2017 Aleksey Cheusov ([email protected]) |
| 7 |
# |
| 8 |
# Permission is hereby granted, free of charge, to any person obtaining |
| 9 |
# a copy of this software and associated documentation files (the |
| 10 |
# "Software"), to deal in the Software without restriction, including |
| 11 |
# without limitation the rights to use, copy, modify, merge, publish, |
| 12 |
# distribute, sublicense, and/or sell copies of the Software, and to |
| 13 |
# permit persons to whom the Software is furnished to do so, subject to |
| 14 |
# the following conditions: |
| 15 |
# |
| 16 |
# The above copyright notice and this permission notice shall be |
| 17 |
# included in all copies or substantial portions of the Software. |
| 18 |
# |
| 19 |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 20 |
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
| 21 |
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 22 |
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE |
| 23 |
# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION |
| 24 |
# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
| 25 |
# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
| 26 |
|
| 27 |
.SUFFIXES: .bib .bbl |
| 28 |
|
| 29 |
LATEX ?= latex |
| 30 |
PERL ?= perl |
| 31 |
FIG2DEV ?= fig2dev |
| 32 |
DVIPS ?= dvips |
| 33 |
REFBIBTEX ?= refbibtex |
| 34 |
BIBTEX ?= bibtex |
| 35 |
|
| 36 |
LIBMAA_SOURCES != echo ../maa/*.c ../maa/*.h |
| 37 |
|
| 38 |
FIGS = |
| 39 |
SLIDEFIGS = |
| 40 |
|
| 41 |
TEMPORARIES = general.tex |
| 42 |
|
| 43 |
FILES = libmaa.600dpi.ps ../README TODO NEWS LICENSE |
| 44 |
FILESDIR = ${DOCDIR} |
| 45 |
|
| 46 |
libmaa.dvi: libmaa.tex ${TEMPORARIES} ${FIGS} |
| 47 |
|
| 48 |
#all: libmaa.dvi |
| 49 |
|
| 50 |
libmaa.bib: libmaa.tex |
| 51 |
if ${REFBIBTEX} -j libmaa.tex ${TEMPORARIES} > [email protected]; then \ |
| 52 |
touch $@; \ |
| 53 |
fi |
| 54 |
cmp -s $@ [email protected] || mv [email protected] $@ |
| 55 |
-rm -f [email protected] |
| 56 |
|
| 57 |
general.tex: ${LIBMAA_SOURCES} |
| 58 |
${PERL} extract.pl ${LIBMAA_SOURCES} > general.tex |
| 59 |
|
| 60 |
.dvi.ps: |
| 61 |
if fgrep 'LANDSCAPE MODE' ${<:H}.log > /dev/null; then \ |
| 62 |
${DVIPS} -t landscape -o $@ ${<:H}; \ |
| 63 |
else \ |
| 64 |
${DVIPS} -o $@ ${<:H}; \ |
| 65 |
fi |
| 66 |
|
| 67 |
.tex.stamp: |
| 68 |
test -f $*.stamp || cp $*.aux $*.stamp || touch $*.stamp |
| 69 |
${LATEX} $* |
| 70 |
cmp -s $*.stamp $*.aux || cp $*.aux $*.stamp |
| 71 |
|
| 72 |
libmaa.dvi: libmaa.bbl libmaa.tex |
| 73 |
if fgrep 'LaTeX Warning: Label' libmaa.log>/dev/null; then ${LATEX} libmaa.tex; fi |
| 74 |
if fgrep 'LaTeX Warning: Label' libmaa.log>/dev/null; then ${LATEX} libmaa.tex; fi |
| 75 |
if fgrep 'LaTeX Warning: Label' libmaa.log>/dev/null; then ${LATEX} libmaa.tex; fi |
| 76 |
|
| 77 |
.bib.bbl: |
| 78 |
${BIBTEX} $< |
| 79 |
|
| 80 |
.include <mkc.mk> |