aboutsummaryrefslogtreecommitdiffstats
path: root/mk/tools.mk
blob: 6793840157e3f5e459152311ce4c26af6e7a620f (plain) (blame)
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
97
# Copyright (C) 2015  Mattias Andrée <maandree@member.fsf.org>
# 
# Copying and distribution of this file, with or without modification,
# are permitted in any medium without royalty provided the copyright
# notice and this notice are preserved.  This file is offered as-is,
# without any warranty.


#=== This file defines variables for all used commands. ===#


# Part of GNU Coreutils:
MKDIR ?= mkdir
CP ?= cp
MV ?= mv
RM ?= rm
RMDIR ?= rmdir
TRUE ?= true
TEST ?= test
TOUCH ?= touch
ECHO ?= echo
CUT ?= cut
TAC ?= tac
TAIL ?= tail
HEAD ?= head
SORT ?= sort
UNIQ ?= uniq
PRINTF ?= printf
WC ?= wc
INSTALL ?= install
INSTALL_PROGRAM ?= $(INSTALL) -m755
INSTALL_DATA ?= $(INSTALL) -m644
INSTALL_DIR ?= $(INSTALL) -dm755

# Part of GNU Findutils:
FIND ?= find
XARGS ?= xargs

# Part of GNU Grep:
GREP ?= grep

# Part of GNU Sed:
SED ?= sed

# Part of GNU Privacy Guard:
GPG ?= gpg

# Part of Texinfo:
MAKEINFO ?= makeinfo
MAKEINFO_HTML ?= $(MAKEINFO) --html

# Part of Texlive-plainextra:
TEXI2PDF ?= texi2pdf
TEXI2DVI ?= texi2dvi
TEXI2PS ?= texi2pdf --ps

# Part of Texlive-core:
PS2EPS ?= ps2eps

# Part of librsvg:
RSVG_CONVERT ?= rsvg-convert
SVG2PS ?= $(RSVG_CONVERT) --format=ps
SVG2PDF ?= $(RSVG_CONVERT) --format=pdf

# Part of GCC:
CC ?= cc
CPP ?= cpp

# Part of GNU Gettext:
XGETTEXT ?= xgettext
MSGFMT ?= msgfmt
MSGMERGE ?= msgmerge
MSGINIT ?= msginit

# Part of gzip:
GZIP ?= gzip
GZIP_COMPRESS ?= $(GZIP) -k9

# Part of bzip2:
BZIP2 ?= bzip2
BZIP2_COMPRESS ?= $(BZIP2) -k9

# Part of xz:
XZ ?= xz
XZ_COMPRESS ?= $(XZ) -ke9


# Change to $(TRUE) to suppress the bold red and blue output.
ifndef PRINTF_INFO
PRINTF_INFO = $(PRINTF)
endif

# Change to $(TRUE) to suppress empty lines
ifndef ECHO_EMPTY
ECHO_EMPTY = $(ECHO)
endif