-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathMakefile
96 lines (85 loc) · 2.62 KB
/
Makefile
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
#*** Makefile ******************************************************************
#
# This file is part of BibTool.
# It is distributed under the GNU General Public License.
# See the file COPYING for details.
#
# (c) 1996-2020 Gerd Neugebauer
#
# Net: [email protected]
#
# This program 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, or (at your option)
# any later version.
#
# This program 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 program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#
#******************************************************************************
#* Author: Gerd Neugebauer
#*=============================================================================
include makefile
DIR = $(shell basename `pwd`)
DIRNO = $(shell basename `pwd`-`sed -e '/bibtool_version =/s/.*"\(.*\)".*/\1/p' -e d version.c`)
DISTFILES += AutoConf/config.h.in \
AutoConf/makefile.in \
AutoConf/reconfig.h.in \
BibTcl/bibtcl.bib \
BibTcl/bibtcl.ltx \
BibTcl/bibtcl.tex \
BibTcl/bibtool.c \
BibTcl/bibtool.ist \
BibTcl/Makefile.in \
BibTcl/configure \
BibTcl/configure.in \
BibTcl/dina4.sty \
BibTcl/main.tcl \
BibTcl/README \
BibTcl/version.tex \
BibTcl/Makefile \
MSDOS/link.dj \
MSDOS/link.msc \
MSDOS/link.wat \
Linux/ld-version-script \
configure \
configure.ac \
install-sh \
mkdirchain \
test/lib/BUnit.pm \
test/makefile \
test/bib/*.bib \
test/*.t
CTANFILES = README.md \
doc/bibtool.pdf \
doc/ref_card.pdf \
doc/c_lib.pdf
LATEX = lualatex
configure: configure.ac
autoconf
lint:
gcc $(C_FLAGS) $(REGEX_DEF) $(DONT_LINK) -ansi -W -Wall -O2 ${CFILES}
dist: Changes.pdf install.pdf
@( cd doc; make)
@( cd ..; rm -f $(DIRNO).tar.gz; \
tar -cvzf $(DIRNO).tar.gz $(DISTFILES:%=$(DIR)/%) \
--owner bibtool --group bibtool )
@gpg -a -b ../$(DIRNO).tar.gz
@( cd ..; rm -f $(DIRNO).zip; \
zip -r $(DIRNO).zip $(DISTFILES:%=$(DIR)/%) \
-x \*/\*/CVS/\* \*/config.status )
ctan: dist
@rm -rf ../bibtool ../bibtool.zip
@mkdir ../bibtool
@cp $(CTANFILES) ../$(DIRNO).tar.gz ../$(DIRNO).tar.gz.asc ../bibtool
@( cd ..; zip bibtool.zip bibtool/* )
@rm -rf ../bibtool
%.pdf: %.tex
@$(LATEX) $*
#