aboutsummaryrefslogtreecommitdiffstats
path: root/mk/tools.mk
blob: 63d6d668dfbab43e8d65afcab33951aa076d30e9 (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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
# 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:
BASENAME ?= basename
CHGRP ?= chgrp
CHMOD ?= chmod
CHOWN ?= chown
CP ?= cp
CPLIT ?= cplit
CUT ?= cut
DATE ?= date
DIRNAME ?= dirname
ECHO ?= echo
ENV ?= env
EXPAND ?= expand
EXPR ?= expr
FALS ?= false
FMT ?= fmt
FOLD ?= fold
HEAD ?= head
INSTALL ?= install
INSTALL_DATA ?= $(INSTALL) -m644
INSTALL_DIR ?= $(INSTALL) -dm755
INSTALL_PROGRAM ?= $(INSTALL) -m755
JOIN ?= join
LN ?= ln
MKDIR ?= mkdir
MKFIFO ?= mkfifo
MKNOD ?= mknod
MV ?= mv
NL ?= nl
NPROC ?= nproc
NUMFMT ?= numfmt
OD ?= od
PASTE ?= paste
PATHCHK ?= pathchk
PR ?= pr
PRINTF ?= printf
READLINK ?= readlink
REALPATH ?= realpath
RM ?= rm
RMDIR ?= rmdir
SEQ ?= seq
SLEEP ?= sleep
SORT ?= sort
SPLIT ?= split
STAT ?= stat
TAC ?= tac
TAIL ?= tail
TEE ?= tee
TEST ?= test
TOUCH ?= touch
TR ?= tr
TRUE ?= true
TRUNCATE ?= truncate
TSORT ?= tsort
UNAME ?= uname
UNEXPAND ?= unexpand
UNIQ ?= uniq
WC ?= wc
YES ?= yes

# Part of GNU help2man:
HELP2MAN ?= help2man

# Part of GNU tar:
TAR ?= tar

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

# Part of GNU Grep:
GREP ?= grep
EGREP ?= egrep
FGREP ?= fgrep

# Part of GNU Sed:
SED ?= sed

# Part of GNU Privacy Guard:
GPG ?= gpg

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

# 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 GNU Compiler Collection:
CC ?= cc
CPP ?= cpp
CXX ?= c++

# Part of GNU Binutils:
AR ?= ar
LD ?= ld
RANLIB ?= ranlib

# Part of GNU Bison:
BISON ?= bison
YACC ?= yacc

# Part of Flex:
FLEX ?= FLEX
LEX ?= lex

# Part of GNU C Library:
LDCONFIG ?= ldconfig

# 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

# Part of auto-auto-complete:
AUTO_AUTO_COMPLETE ?= auto-auto-complete


# 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