blob: 0489f75f6fb1eaf2834888416df3a55e932c8b51 (
plain)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
### Makefile --- for building dk-bib
# Copyright (C) 2004, 2005, 2006 Arne Jorgensen
# Version: $Id: Makefile 89 2006-05-16 19:50:56Z arne $
# This file is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or (at
# your option) any later version.
# This file is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this file; if not, write to the Free Software Foundation,
# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
.PHONY: all doc install-texmfhome install-texmflocal install texlive clean
all: dk-bib.pdf
doc: dk-bib.ltx litteratur.bib dk-plain.bst dk-bib.sty
test ${LATEX} # checking wheter LATEX is set
${LATEX} dk-bib.ltx
bibtex dk-bib
${LATEX} dk-bib.ltx
${LATEX} dk-bib.ltx
dk-bib.pdf: dk-bib.ltx litteratur.bib dk-plain.bst dk-bib.sty
LATEX=pdflatex make doc
dk-bib.dvi: dk-bib.ltx litteratur.bib dk-plain.bst dk-bib.sty
LATEX=latex make doc
dk-bib.zip: README COPYRIGHT Makefile dk-bib.ltx dk-bib.pdf\
*.sty litteratur.bib *.bst *.csf
zip -z $@ $^ < README
install: dk-bib.pdf
test ${INSTALLDIR} # checking whether INSTALLDIR is set
install -m 0755 -d ${INSTALLDIR}/tex/latex/dk-bib/
install -m 0755 -d ${INSTALLDIR}/doc/latex/dk-bib/
install -m 0755 -d ${INSTALLDIR}/bibtex/bst/dk-bib/
install -m 0755 -d ${INSTALLDIR}/bibtex/csf/dk-bib/
install -m 0644 dk-bib.sty ${INSTALLDIR}/tex/latex/dk-bib/
install -m 0644 dk-apali.sty ${INSTALLDIR}/tex/latex/dk-bib/
install -m 0644 dk-bib.pdf ${INSTALLDIR}/doc/latex/dk-bib/
install -m 0644 *.bst ${INSTALLDIR}/bibtex/bst/dk-bib/
install -m 0644 *.csf ${INSTALLDIR}/bibtex/csf/dk-bib/
(test -f ${INSTALLDIR}/ls-R && mktexlsr ${INSTALLDIR}) || true
texlive:
INSTALLDIR=texlive/texmf-dist make install
install-texmfhome:
test `kpsexpand '$$TEXMFHOME'` # checking whether TEXMFHOME is defined
INSTALLDIR=`kpsexpand '$$TEXMFHOME'` make install
install-texmflocal:
test `kpsexpand '$$TEXMFLOCAL'` # checking whether TEXMFLOCAL is defined
INSTALLDIR=`kpsexpand '$$TEXMFLOCAL'` make install
clean:
${RM} dk-bib.aux dk-bib.log dk-bib.blg dk-bib.bbl dk-bib.out dk-bib.dvi\
dk-bib.pdf dk-bib.zip
${RM} *~
### Makefile ends here
|