| 1 |
# *** makefile **************************************************************** |
| 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) 1996-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 |
# Look also in the file include/bibtool/config.h for additional |
| 28 |
# configuration parameters. |
| 29 |
# Read the file INSTALL for explanation. |
| 30 |
# ============================================================================= |
| 31 |
|
| 32 |
# This is the generic makefile for BibTool. |
| 33 |
# Especially it can be used on Unix systems and as a basis for |
| 34 |
# systems not directly mentioned in the distribution. |
| 35 |
|
| 36 |
# ============================================================================= |
| 37 |
# Configuration Section |
| 38 |
# ============================================================================= |
| 39 |
# |
| 40 |
prefix = @prefix@ |
| 41 |
exec_prefix = @exec_prefix@ |
| 42 |
datadir = @datadir@ |
| 43 |
datarootdir = @datarootdir@ |
| 44 |
|
| 45 |
# ------------------------------------------------------- |
| 46 |
# Prefix to be prepended to all installation directories. |
| 47 |
# Thus it is possible to install in a different location |
| 48 |
# as the final location. This seems useful for building |
| 49 |
# RPMs on Linux. |
| 50 |
|
| 51 |
INSTALLPREFIX = $(DESTDIR) |
| 52 |
|
| 53 |
# ------------------------------------------------------- |
| 54 |
# Destination directory for make install |
| 55 |
# This is usually a directory where public executables |
| 56 |
# are installed. |
| 57 |
|
| 58 |
BINDIR = @bindir@ |
| 59 |
|
| 60 |
# ------------------------------------------------------- |
| 61 |
# Destination directory for make install.man |
| 62 |
# This is usually a directory where public man pages |
| 63 |
# are installed. |
| 64 |
# Additionally name the section of the man pages to use. |
| 65 |
# This should be 1 (user commands), l (local), or n (new) |
| 66 |
# |
| 67 |
MANDIR = @mandir@ |
| 68 |
MANSECT = 1 |
| 69 |
|
| 70 |
# ------------------------------------------------------- |
| 71 |
# Destination directory for make install.lib |
| 72 |
# This is usually a directory where public shared files |
| 73 |
# are installed plus a final BibTool. |
| 74 |
# |
| 75 |
|
| 76 |
LIBDIR = @datadir@/bibtool |
| 77 |
|
| 78 |
#------------------------------------------------------- |
| 79 |
# Destination directory for make install.include |
| 80 |
# This is usually a directory where public include files |
| 81 |
# are installed plus a final `bibtool'. |
| 82 |
# Note: The include files may contain system specific |
| 83 |
# code and may not be shared amoung architectures. |
| 84 |
# |
| 85 |
|
| 86 |
INCLUDEDIR = @includedir@/bibtool |
| 87 |
|
| 88 |
# ------------------------------------------------------- |
| 89 |
# Name the C compiler |
| 90 |
# |
| 91 |
|
| 92 |
CC = @CC@ |
| 93 |
|
| 94 |
# ------------------------------------------------------- |
| 95 |
# CFLAGS are the flags for the C compiler. |
| 96 |
# For debugging it should be -g. |
| 97 |
# For final version you can try to activate |
| 98 |
# the optimizer with -O or -O2 or whatever |
| 99 |
# BEWARE: Some C compiler produce erroneous code if the |
| 100 |
# optimizer is turned on. |
| 101 |
# |
| 102 |
|
| 103 |
CFLAGS = -Wall @CFLAGS@ -Wno-misleading-indentation -Wno-unused-function |
| 104 |
# CFLAGS = -O |
| 105 |
# GNU C |
| 106 |
# CFLAGS = -g -Wall |
| 107 |
# CFLAGS = -g -Wall -pedantic -Wpointer-arith -Wshadow -Wcast-align |
| 108 |
|
| 109 |
##------------------------------------------------------- |
| 110 |
## C_INCLUDE are the flags for the C compiler pointing it |
| 111 |
## to the location of the header files. Usually this |
| 112 |
## does not need any modifications. |
| 113 |
## |
| 114 |
|
| 115 |
C_INCLUDE = -Iinclude |
| 116 |
|
| 117 |
# ------------------------------------------------------- |
| 118 |
# EXT is the optional extension of the final executable. |
| 119 |
# Various operating systems have their own ideas about |
| 120 |
# that. |
| 121 |
# |
| 122 |
|
| 123 |
EXT = |
| 124 |
|
| 125 |
# ------------------------------------------------------- |
| 126 |
# Extension of object files |
| 127 |
# |
| 128 |
|
| 129 |
OBJ = .o |
| 130 |
|
| 131 |
# ------------------------------------------------------- |
| 132 |
# Name some programs |
| 133 |
# |
| 134 |
# ------------------------------------------------------- |
| 135 |
# MV is a command to move certain files maybe to other |
| 136 |
# directories or drives. Only plain files are moved. |
| 137 |
# |
| 138 |
|
| 139 |
MV = mv |
| 140 |
|
| 141 |
# ------------------------------------------------------- |
| 142 |
# RM is a command to remove certain files. It should not |
| 143 |
# be confused when trying to remove non-existent files. |
| 144 |
# Only plain files are removed this way. |
| 145 |
# |
| 146 |
|
| 147 |
RM = rm -rf |
| 148 |
|
| 149 |
# ------------------------------------------------------- |
| 150 |
# MAKEDEPEND is a program to find dependencies for |
| 151 |
# .c and .h files. |
| 152 |
# Not present on MS-DOS, Atari, Amiga, Next |
| 153 |
|
| 154 |
MAKEDEPEND = makedepend |
| 155 |
# MAKEDPEND = gcc -MM |
| 156 |
|
| 157 |
# ------------------------------------------------------- |
| 158 |
# INSTALL is a program to properly install some files. |
| 159 |
# Maybe cp should also do this job (on UNIX) |
| 160 |
|
| 161 |
INSTALL = @INSTALL@ |
| 162 |
|
| 163 |
# ------------------------------------------------------- |
| 164 |
# INSTALL_DATA is a command to install some data files. |
| 165 |
# |
| 166 |
|
| 167 |
INSTALL_DATA = @INSTALL_DATA@ |
| 168 |
|
| 169 |
# ------------------------------------------------------- |
| 170 |
# INSTALL_DIR is a command to create a directory if not |
| 171 |
# already existent. If your install does not support the |
| 172 |
# -d option you can try to use mkdir instead. |
| 173 |
|
| 174 |
INSTALL_DIR = @INSTALL@ -d |
| 175 |
|
| 176 |
# ------------------------------------------------------- |
| 177 |
# The ranlib program or : for nothing. |
| 178 |
# |
| 179 |
RANLIB = @RANLIB@ |
| 180 |
|
| 181 |
# ------------------------------------------------------- |
| 182 |
# The ar program invocation to add files to the archive. |
| 183 |
# |
| 184 |
AR = ar r |
| 185 |
|
| 186 |
# ------------------------------------------------------- |
| 187 |
# PERL is the complete path to an existing perl executable. |
| 188 |
# Perl 4.* and Perl 5.* are both ok. |
| 189 |
# |
| 190 |
PERL = @PERL@ |
| 191 |
|
| 192 |
# ------------------------------------------------------- |
| 193 |
# LINT is a program to check the C source for problems. |
| 194 |
# |
| 195 |
|
| 196 |
LINT = lint |
| 197 |
|
| 198 |
# ------------------------------------------------------- |
| 199 |
# CXREF is a C cross reference program. |
| 200 |
# |
| 201 |
|
| 202 |
CXREF = cxref |
| 203 |
|
| 204 |
# ------------------------------------------------------- |
| 205 |
# Defines to support (non-ANSI) C compilers. |
| 206 |
# For Solaris 2 you may have to define HAVE_STRING_H |
| 207 |
# For some versions of Cygwin you may have to define |
| 208 |
# STD_HEADERS. |
| 209 |
# For ANSI C compilers they should be empty. |
| 210 |
# Mostly needed for the GNU regex library. |
| 211 |
# Include |
| 212 |
# -DHAVE_STRING_H if your C compiler has string.h |
| 213 |
# (e.g. on Solaris 2) |
| 214 |
# Maybe you have to enlarge the |
| 215 |
# include search path. |
| 216 |
# -DREGEX_MALLOC if you have NO alloca() library |
| 217 |
# function |
| 218 |
# -DHAVE_ALLOCA_H if you need alloca.h for alloca() |
| 219 |
# -DSTDC_HEADERS if gcc reports conflicting types |
| 220 |
# for malloc (on Linux?) |
| 221 |
# |
| 222 |
|
| 223 |
NON_ANSI_DEFS = @DEFS@ |
| 224 |
|
| 225 |
# ------------------------------------------------------- |
| 226 |
# GNU Regular Expression Library support. |
| 227 |
# First of all the (sub)directory containing the |
| 228 |
# necessary files (excluding trailing slash). |
| 229 |
# |
| 230 |
# Debian package uses regex function from glibc: |
| 231 |
|
| 232 |
REGEX_DIR = |
| 233 |
REGEX_DEF = -DREGEX |
| 234 |
REGEX= |
| 235 |
|
| 236 |
# ------------------------------------------------------- |
| 237 |
# Kpathsea Library support. |
| 238 |
# This library provides means to specify a search path |
| 239 |
# with recursive search in subdirectories. |
| 240 |
# The library is NOT contained in the BibTool distribution. |
| 241 |
# This routines are expected to work with Kpathsea-2.6 or |
| 242 |
# above. |
| 243 |
# |
| 244 |
# See the file INSTALL for details. |
| 245 |
# |
| 246 |
# Kpathsea is not known to work yet on anything else but |
| 247 |
# Unix platforms. |
| 248 |
# This item is purely experimental. |
| 249 |
# Maybe you are better off not trying it! |
| 250 |
# |
| 251 |
# The value of KPATHSEA_DIR is the directory containing |
| 252 |
# the distribution of kpathsea. I.e. the directory |
| 253 |
# containing the subdirectory kpathsea. |
| 254 |
# The value of KPATHSEA is the name of the kpathsea library. |
| 255 |
# if kpathsea should not be used then it has to be empty. |
| 256 |
# The value of KPATHSEA_DEF are the additional flags for the |
| 257 |
# C compiler. It should arrange things that the macro |
| 258 |
# KPATHSEA is defined and the directory beneath kpathsea |
| 259 |
# is in the include search path. |
| 260 |
|
| 261 |
KPATHSEA_DIR = @kpathsea_dir@ |
| 262 |
KPATHSEA = @kpathsea_lib@ |
| 263 |
KPATHSEA_STATIC = @kpathsea_lib_static@ |
| 264 |
KPATHSEA_DEF = @kpathsea_def@ |
| 265 |
|
| 266 |
# ------------------------------------------------------- |
| 267 |
# Default search paths |
| 268 |
# The values are NULL or a string containing a colon |
| 269 |
# separated list of directories. |
| 270 |
# DON'T FORGET THE CURRENT DIRECTORY! |
| 271 |
# |
| 272 |
# The character ENV_SEP separates the directories in |
| 273 |
# environment search paths. |
| 274 |
# |
| 275 |
|
| 276 |
BIBINPUTS_DEFAULT = NULL |
| 277 |
BIBTOOL_DEFAULT = \".:$(LIBDIR)\" |
| 278 |
ENV_SEP = \":\" |
| 279 |
|
| 280 |
# ------------------------------------------------------- |
| 281 |
# Declare the file naming conventions. |
| 282 |
# FILE_TYPES contains optionally a macro definition |
| 283 |
# determining the file naming conventions. |
| 284 |
# -DMS-DOS denotes MSDOG-like file names. (Also for Atari) |
| 285 |
# -DAMIGA denotes the Amiga file names. |
| 286 |
# The default (empty) are UN*X-like file names. |
| 287 |
# |
| 288 |
# DIR_SEP is the directory-file separator. |
| 289 |
|
| 290 |
FILE_TYPES = |
| 291 |
DIR_SEP = / |
| 292 |
|
| 293 |
# ============================================================================= |
| 294 |
# End of Configuration Section |
| 295 |
# ============================================================================= |
| 296 |
|
| 297 |
MAKEFILE = makefile |
| 298 |
|
| 299 |
SHELL = /bin/sh |
| 300 |
|
| 301 |
RSC_DEF = -DRSC_BIBINPUTS_DEFAULT=$(BIBINPUTS_DEFAULT) \ |
| 302 |
-DRSC_BIBTOOL_DEFAULT=$(BIBTOOL_DEFAULT) \ |
| 303 |
-DENV_SEP=$(ENV_SEP) |
| 304 |
|
| 305 |
DONT_LINK = -c |
| 306 |
LINK_TO = -o |
| 307 |
STANDALONE = -DSTANDALONE |
| 308 |
|
| 309 |
C_FLAGS = $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) $(C_INCLUDE) $(FILE_TYPES) |
| 310 |
LD_FLAGS = $(LDFLAGS) |
| 311 |
|
| 312 |
CFILES = main.c \ |
| 313 |
$(CLIBFILES) |
| 314 |
CLIBFILES = check.c \ |
| 315 |
crossref.c \ |
| 316 |
database.c \ |
| 317 |
entry.c \ |
| 318 |
error.c \ |
| 319 |
expand.c \ |
| 320 |
init.c \ |
| 321 |
io.c \ |
| 322 |
key.c \ |
| 323 |
macros.c \ |
| 324 |
names.c \ |
| 325 |
parse.c \ |
| 326 |
print.c \ |
| 327 |
pxfile.c \ |
| 328 |
record.c \ |
| 329 |
rewrite.c \ |
| 330 |
rsc.c \ |
| 331 |
s_parse.c \ |
| 332 |
symbols.c \ |
| 333 |
stack.c \ |
| 334 |
sbuffer.c \ |
| 335 |
tex_aux.c \ |
| 336 |
tex_read.c \ |
| 337 |
type.c \ |
| 338 |
version.c \ |
| 339 |
wordlist.c |
| 340 |
|
| 341 |
HPATH = include${DIR_SEP}bibtool${DIR_SEP} |
| 342 |
HFILES = config.h \ |
| 343 |
${HPATH}check.h \ |
| 344 |
${HPATH}crossref.h \ |
| 345 |
${HPATH}database.h \ |
| 346 |
${HPATH}bibtool.h \ |
| 347 |
${HPATH}config.h \ |
| 348 |
${HPATH}entry.h \ |
| 349 |
${HPATH}error.h \ |
| 350 |
${HPATH}expand.h \ |
| 351 |
${HPATH}general.h \ |
| 352 |
${HPATH}init.h \ |
| 353 |
${HPATH}io.h \ |
| 354 |
${HPATH}key.h \ |
| 355 |
${HPATH}keynode.h \ |
| 356 |
${HPATH}macros.h \ |
| 357 |
${HPATH}names.h \ |
| 358 |
${HPATH}parse.h \ |
| 359 |
${HPATH}print.h \ |
| 360 |
${HPATH}pxfile.h \ |
| 361 |
${HPATH}regex.h \ |
| 362 |
${HPATH}record.h \ |
| 363 |
${HPATH}resource.h \ |
| 364 |
${HPATH}rewrite.h \ |
| 365 |
${HPATH}rsc.h \ |
| 366 |
${HPATH}s_parse.h \ |
| 367 |
${HPATH}sbuffer.h \ |
| 368 |
${HPATH}stack.h \ |
| 369 |
${HPATH}symbols.h \ |
| 370 |
${HPATH}tex_aux.h \ |
| 371 |
${HPATH}tex_read.h \ |
| 372 |
${HPATH}type.h \ |
| 373 |
${HPATH}version.h \ |
| 374 |
${HPATH}wordlist.h |
| 375 |
|
| 376 |
OFILES = main$(OBJ) \ |
| 377 |
$(OLIBFILES) |
| 378 |
OLIBFILES = check$(OBJ) \ |
| 379 |
crossref$(OBJ) \ |
| 380 |
database$(OBJ) \ |
| 381 |
entry$(OBJ) \ |
| 382 |
error$(OBJ) \ |
| 383 |
expand$(OBJ) \ |
| 384 |
init$(OBJ) \ |
| 385 |
io$(OBJ) \ |
| 386 |
key$(OBJ) \ |
| 387 |
macros$(OBJ) \ |
| 388 |
names$(OBJ) \ |
| 389 |
parse$(OBJ) \ |
| 390 |
print$(OBJ) \ |
| 391 |
pxfile$(OBJ) \ |
| 392 |
record$(OBJ) \ |
| 393 |
rewrite$(OBJ) \ |
| 394 |
rsc$(OBJ) \ |
| 395 |
s_parse$(OBJ) \ |
| 396 |
symbols$(OBJ) \ |
| 397 |
stack$(OBJ) \ |
| 398 |
sbuffer$(OBJ) \ |
| 399 |
tex_aux$(OBJ) \ |
| 400 |
tex_read$(OBJ) \ |
| 401 |
type$(OBJ) \ |
| 402 |
version$(OBJ) \ |
| 403 |
wordlist$(OBJ) |
| 404 |
|
| 405 |
DOCFILES = doc$(DIR_SEP)bibtool.1 \ |
| 406 |
doc$(DIR_SEP)bibtool.tex \ |
| 407 |
doc$(DIR_SEP)bibtool.bib \ |
| 408 |
doc$(DIR_SEP)bibtool.ist \ |
| 409 |
doc$(DIR_SEP)bibtool-doc.sty \ |
| 410 |
doc$(DIR_SEP)ref_card.tex \ |
| 411 |
doc$(DIR_SEP)Makefile \ |
| 412 |
doc$(DIR_SEP)config.tex \ |
| 413 |
doc$(DIR_SEP)c_main.tex \ |
| 414 |
doc$(DIR_SEP)c_lib.tex \ |
| 415 |
doc$(DIR_SEP)c.tex \ |
| 416 |
doc$(DIR_SEP)c_get.pl \ |
| 417 |
doc$(DIR_SEP)make_version.pl |
| 418 |
|
| 419 |
LIBFILES = lib$(DIR_SEP)biblatex.rsc \ |
| 420 |
lib$(DIR_SEP)braces.rsc \ |
| 421 |
lib$(DIR_SEP)check_y.rsc \ |
| 422 |
lib$(DIR_SEP)default.rsc \ |
| 423 |
lib$(DIR_SEP)field.rsc \ |
| 424 |
lib$(DIR_SEP)improve.rsc \ |
| 425 |
lib$(DIR_SEP)iso2tex.rsc \ |
| 426 |
lib$(DIR_SEP)keep_bibtex.rsc \ |
| 427 |
lib$(DIR_SEP)keep_biblatex.rsc \ |
| 428 |
lib$(DIR_SEP)month.rsc \ |
| 429 |
lib$(DIR_SEP)opt.rsc \ |
| 430 |
lib$(DIR_SEP)sort_fld.rsc \ |
| 431 |
lib$(DIR_SEP)tex_def.rsc |
| 432 |
|
| 433 |
PROGFILES = Perl$(DIR_SEP)bibtool.pl \ |
| 434 |
Tcl$(DIR_SEP)bibtool.tcl |
| 435 |
ETCFILES = README.md \ |
| 436 |
install.tex \ |
| 437 |
COPYING \ |
| 438 |
Changes.tex \ |
| 439 |
makefile.unx \ |
| 440 |
makefile.dos \ |
| 441 |
makefile.ata \ |
| 442 |
makefile.ami \ |
| 443 |
ToDo \ |
| 444 |
THANKS \ |
| 445 |
pxfile.man \ |
| 446 |
sbuffer.man \ |
| 447 |
$(MSDOS_targets) \ |
| 448 |
$(PROGFILES) |
| 449 |
|
| 450 |
DISTFILES = $(ETCFILES) \ |
| 451 |
$(CFILES) \ |
| 452 |
$(HFILES) \ |
| 453 |
$(LIBFILES) \ |
| 454 |
$(DOCFILES) \ |
| 455 |
$(REGEX_DIR) |
| 456 |
# ----------------------------------------------------------------------------- |
| 457 |
# The main target |
| 458 |
# ----------------------------------------------------------------------------- |
| 459 |
|
| 460 |
default all: bibtool$(EXT) |
| 461 |
|
| 462 |
bibtool$(EXT): $(OFILES) $(REGEX) $(KPATHSEA_STATIC) |
| 463 |
$(CC) $(LD_FLAGS) $(C_FLAGS) $(LINK_TO) $@ $(OFILES) $(REGEX) $(KPATHSEA) $(KPATHSEA_STATIC) |
| 464 |
|
| 465 |
tex_read$(EXT): tex_read.c |
| 466 |
$(CC) $(LD_FLAGS) $(C_FLAGS) $(STANDALONE) tex_read.c $(LINK_TO) tex_read$(EXT) |
| 467 |
|
| 468 |
tex_aux$(OBJ): tex_aux.c |
| 469 |
$(CC) $(C_FLAGS) $(REGEX_DEF) $(DONT_LINK) tex_aux.c -o tex_aux$(OBJ) |
| 470 |
|
| 471 |
main$(OBJ): main.c |
| 472 |
$(CC) $(C_FLAGS) $(REGEX_DEF) $(KPATHSEA_DEF) $(DONT_LINK) main.c |
| 473 |
|
| 474 |
init$(OBJ): init.c |
| 475 |
$(CC) $(C_FLAGS) $(KPATHSEA_DEF) $(DONT_LINK) init.c |
| 476 |
|
| 477 |
parse$(OBJ): parse.c |
| 478 |
$(CC) $(C_FLAGS) $(KPATHSEA_DEF) $(DONT_LINK) parse.c -o parse$(OBJ) |
| 479 |
|
| 480 |
rewrite$(OBJ): rewrite.c |
| 481 |
$(CC) $(C_FLAGS) $(REGEX_DEF) $(DONT_LINK) rewrite.c -o rewrite$(OBJ) |
| 482 |
|
| 483 |
rsc$(OBJ): rsc.c |
| 484 |
$(CC) $(C_FLAGS) $(RSC_DEF) $(DONT_LINK) rsc.c -o rsc$(OBJ) |
| 485 |
|
| 486 |
.c$(OBJ): |
| 487 |
$(CC) $(C_FLAGS) $(DONT_LINK) -c $< -o $@ |
| 488 |
|
| 489 |
# __________________________________________________________________ |
| 490 |
# Include the makefile into the dependencies to force updates |
| 491 |
# when the makefile is modified. |
| 492 |
|
| 493 |
$(OFILES): $(MAKEFILE) |
| 494 |
|
| 495 |
# __________________________________________________________________ |
| 496 |
# Targets from the GNU Regular Expression Library. |
| 497 |
|
| 498 |
regex$(OBJ): $(REGEX_DIR)$(DIR_SEP)regex.c $(MAKEFILE) |
| 499 |
$(CC) $(C_FLAGS) -I$(REGEX_DIR) -I.. $(NON_ANSI_DEFS) $(REGEX_DIR)$(DIR_SEP)regex.c $(DONT_LINK) -o $@ |
| 500 |
|
| 501 |
|
| 502 |
bibtcl: |
| 503 |
cd BibTcl && $(MAKE) $(MFLAGS) |
| 504 |
|
| 505 |
# ----------------------------------------------------------------------------- |
| 506 |
# General development targets |
| 507 |
# ----------------------------------------------------------------------------- |
| 508 |
|
| 509 |
CLEAN_TARGETS = *$(OBJ) xref *.bak core #* *~ |
| 510 |
|
| 511 |
clean mostlyclean: |
| 512 |
-cd doc && $(MAKE) $(MFLAGS) clean |
| 513 |
-cd test && $(MAKE) $(MFLAGS) clean |
| 514 |
-cd BibTcl && $(MAKE) $(MFLAGS) clean |
| 515 |
-$(RM) $(CLEAN_TARGETS) |
| 516 |
|
| 517 |
veryclean distclean realclean extraclean: clean |
| 518 |
-cd doc && $(MAKE) $(MFLAGS) distclean |
| 519 |
-cd test && $(MAKE) $(MFLAGS) distclean |
| 520 |
-$(RM) bibtool config.cache config.status config.log makefile |
| 521 |
|
| 522 |
doc: d-o-c |
| 523 |
d-o-c: |
| 524 |
cd doc; $(MAKE) $(MFLAGS) DIR_SEP=$(DIR_SEP) |
| 525 |
|
| 526 |
info: |
| 527 |
|
| 528 |
test check: Test |
| 529 |
Test: |
| 530 |
(cd test; $(MAKE)) |
| 531 |
|
| 532 |
libbibtool.a: $(OLIBFILES) |
| 533 |
$(AR) $@ $(OLIBFILES) regex.o |
| 534 |
$(RANLIB) $@ |
| 535 |
|
| 536 |
depend: |
| 537 |
-$(MAKEDEPEND) -fmakefile -DMAKEDEPEND -Iinclude $(CFILES) |
| 538 |
|
| 539 |
install: install.bin install.lib |
| 540 |
|
| 541 |
install.bin install-exec: bibtool$(EXT) |
| 542 |
-$(INSTALL_DIR) $(INSTALLPREFIX)$(BINDIR) |
| 543 |
$(INSTALL) bibtool$(EXT) $(INSTALLPREFIX)$(BINDIR) |
| 544 |
|
| 545 |
INSTALL_LIB_FILES = lib$(DIR_SEP)*.* |
| 546 |
|
| 547 |
install.lib install-data: |
| 548 |
-$(INSTALL_DIR) $(INSTALLPREFIX)$(LIBDIR) |
| 549 |
for lib in $(INSTALL_LIB_FILES); do \ |
| 550 |
$(INSTALL_DATA) $$lib $(INSTALLPREFIX)$(LIBDIR); \ |
| 551 |
done |
| 552 |
|
| 553 |
INSTALL_INCLUDE_FILES = $(HFILES) |
| 554 |
|
| 555 |
install.include install-include: |
| 556 |
-$(INSTALL_DIR) $(INSTALLPREFIX)$(INCLUDEDIR) |
| 557 |
for inc in $(INSTALL_INCLUDE_FILES); do \ |
| 558 |
$(INSTALL_DATA) $$inc $(INSTALLPREFIX)$(INCLUDEDIR); \ |
| 559 |
done |
| 560 |
|
| 561 |
install.man install-man: |
| 562 |
-$(INSTALL_DIR) $(INSTALLPREFIX)$(MANDIR)$(DIR_SEP)man$(MANSECT) |
| 563 |
$(INSTALL) doc$(DIR_SEP)bibtool.1 \ |
| 564 |
$(INSTALLPREFIX)$(MANDIR)$(DIR_SEP)man$(MANSECT)$(DIR_SEP)bibtool.$(MANSECT) |
| 565 |
|
| 566 |
uninstall: uninstall.bin uninstall.lib |
| 567 |
|
| 568 |
uninstall.bin uninstall-exec: |
| 569 |
-$(RM) $(INSTALLPREFIX)$(BINDIR)$(DIR_SEP)bibtool$(EXT) |
| 570 |
|
| 571 |
uninstall.lib uninstall-data: |
| 572 |
-$(RM) $(INSTALLPREFIX)$(LIBDIR) |
| 573 |
|
| 574 |
uninstall.include uninstall-include: |
| 575 |
-$(RM) $(INSTALLPREFIX)$(INCLUDEDIR) |
| 576 |
|
| 577 |
uninstall.man uninstall-man: |
| 578 |
-$(RM) $(INSTALLPREFIX)$(MANDIR)$(DIR_SEP)man$(MANSECT)$(DIR_SEP)bibtool.$(MANSECT) |
| 579 |
|
| 580 |
status: |
| 581 |
@echo $(LIBDIR) |
| 582 |
|
| 583 |
# ============================================================================= |
| 584 |
# DO NOT DELETE THIS LINE -- make depend depends on it. |