Debian Codegraph @

test/makefile

raw symbols SCIP
1 # =============================================================================
2 #
3 # This file is part of BibTool.
4 # It is distributed under the GNU General Public License.
5 # See the file COPYING for details.
6 #
7 # (c) 2011-2020 Gerd Neugebauer
8 #
9 # Net: [email protected]
10 #
11 # This program is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU General Public License as published by
13 # the Free Software Foundation; either version 2, or (at your option)
14 # any later version.
15 #
16 # This program is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU General Public License for more details.
20 #
21 # You should have received a copy of the GNU General Public License
22 # along with this program; if not, write to the Free Software
23 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 #
25 #*=============================================================================
26 #
27 # This is the makefile to run the test suite for BibTool. It should
28 # work at least for Unix-like systems with GNUmake and bash.
29 # For instance Linux and Windows with cygwin fulfill this pre-condition.
30 #
31 # Note that portability hasn't been an issue for this makefile yet.
32 #
33
34 # -------------------------------------------------------
35 # EXT is the optional extension of the final executable.
36 # Various operating systems have their own ideas about
37 # that.
38 #
39
40 EXT =
41
42 # -----------------------------------------------------------------------------
43 BIBTOOL_PRG = ../bibtool$(EXT)
44 PERL = perl$(EXT)
45
46 DIR_SEP =/
47 CPATH = ..${DIR_SEP}
48 CFILES = ${CPATH}main.c \
49 ${CPATH}crossref.c \
50 ${CPATH}database.c \
51 ${CPATH}entry.c \
52 ${CPATH}error.c \
53 ${CPATH}expand.c \
54 ${CPATH}init.c \
55 ${CPATH}key.c \
56 ${CPATH}macros.c \
57 ${CPATH}names.c \
58 ${CPATH}parse.c \
59 ${CPATH}print.c \
60 ${CPATH}pxfile.c \
61 ${CPATH}record.c \
62 ${CPATH}rewrite.c \
63 ${CPATH}rsc.c \
64 ${CPATH}s_parse.c \
65 ${CPATH}symbols.c \
66 ${CPATH}stack.c \
67 ${CPATH}sbuffer.c \
68 ${CPATH}tex_aux.c \
69 ${CPATH}tex_read.c \
70 ${CPATH}type.c \
71 ${CPATH}version.c \
72 ${CPATH}wordlist.c
73 HPATH = ${CPATH}include${DIR_SEP}bibtool${DIR_SEP}
74 HFILES = ${CPATH}config.h \
75 ${HPATH}crossref.h \
76 ${HPATH}database.h \
77 ${HPATH}bibtool.h \
78 ${HPATH}config.h \
79 ${HPATH}entry.h \
80 ${HPATH}error.h \
81 ${HPATH}expand.h \
82 ${HPATH}general.h \
83 ${HPATH}init.h \
84 ${HPATH}key.h \
85 ${HPATH}keynode.h \
86 ${HPATH}macros.h \
87 ${HPATH}names.h \
88 ${HPATH}parse.h \
89 ${HPATH}print.h \
90 ${HPATH}pxfile.h \
91 ${HPATH}regex.h \
92 ${HPATH}record.h \
93 ${HPATH}resource.h \
94 ${HPATH}rewrite.h \
95 ${HPATH}rsc.h \
96 ${HPATH}s_parse.h \
97 ${HPATH}sbuffer.h \
98 ${HPATH}stack.h \
99 ${HPATH}symbols.h \
100 ${HPATH}tex_aux.h \
101 ${HPATH}tex_read.h \
102 ${HPATH}type.h \
103 ${HPATH}version.h \
104 ${HPATH}wordlist.h
105
106 default check all: $(BIBTOOL_PRG) $(SUITES)
107 @BIBTOOL_PRG=$(BIBTOOL_PRG) ${PERL} -Ilib -MBUnit -e "exit all()"
108
109 $(BIBTOOL_PRG): $(CFILES) $(HFILES)
110 (cd ..; make)
111
112 clean:
113 ${RM} *.log *.err *.???-expected *.out *~ *.bak core
114
115 distclean: clean
116
117 # -----------------------------------------------------------------------------
118
119 .SUFFIXES: .t .test $(SUFFIXES)
120
121 .t.test: $(BIBTOOL_PRG)
122 @BIBTOOL_PRG=$(BIBTOOL_PRG) $(PERL) -Ilib $<
123
124 #