-
Notifications
You must be signed in to change notification settings - Fork 6
/
configure.mk
53 lines (39 loc) · 1.4 KB
/
configure.mk
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
#############################################################################
# Don't touch these...
#############################################################################
this_makefile := ${lastword ${MAKEFILE_LIST}}
SHELL = bash -o pipefail -o errexit -o nounset
.SECONDARY:
# autoconf variables
SED = sed
# autoconf apps
autoreconf = autoreconf
glibtoolize = glibtoolize
# Use "autoreconf_flags=--force" to override cached values.
autoreconf_flags =
all_files = \
install-sh \
configure \
#############################################################################
#HELP:Default target is "all". Targets include:
.DEFAULT_GOAL = all
#HELP:Targets include:
.PHONY: all # build everything so that ./configure will work
all: ${all_files}
.PHONY: clean # Remove things build by this makefile
clean:
${RM} ${all_files}
${RM} -r autom4te.cache
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
# build
configure: configure.ac
${autoreconf} ${autoreconf_flags} --install --verbose
install-sh:
${glibtoolize} -icf
${RM} ltmain.sh config.guess config.sub
#############################################################################
# make help: this must be the last target
.PHONY: help # Print this help
help:
@ ${SED} -e '/^\.PHONY:/s/^\.PHONY: *\([^ #]*\) *\#\( *\)\([^ ].*\)/\2\1: \3/p;/^[^#]*#HELP:/s/[^#]*#HELP:\(.*\)/\1/p;d' ${this_makefile}
# don't put anything after this