-
Notifications
You must be signed in to change notification settings - Fork 47
/
Makefile.targ
89 lines (76 loc) · 2.72 KB
/
Makefile.targ
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
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at COPYING
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at COPYING.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
# Copyright (c) 2012, Joyent, Inc.
#
all_autoconf: $(BUILD32:yes=all_autoconf_32) $(BUILD64:yes=all_autoconf_64)
all_autoconf_32: $(AUTOCONF_OUT.32)
(cd $(OBJ.32); \
env - PATH=$(PATH) $(MAKE) $(PARALLEL) $(OVERRIDES) $(ALL_TGT))
all_autoconf_64: $(AUTOCONF_OUT.64)
(cd $(OBJ.64); \
env - PATH=$(PATH) $(MAKE) $(PARALLEL) $(OVERRIDES.64) $(ALL_TGT))
install_autoconf: $(BUILD32:yes=install_autoconf_32) \
$(BUILD64:yes=install_autoconf_64)
install_autoconf_32: all
mkdir -p $(DESTDIR)
(cd $(OBJ.32); \
env - PATH=$(PATH) \
$(MAKE) $(install_PARALLEL) $(OVERRIDES) DESTDIR=$(DESTDIR) install)
install_autoconf_64: all
mkdir -p $(DESTDIR)
(cd $(OBJ.64); \
env - PATH=$(PATH) \
$(MAKE) $(install_PARALLEL) $(OVERRIDES.64) DESTDIR=$(DESTDIR) \
install)
$(AUTOCONF_OUT.32): $(VER.32)/configure | $(OBJ.32)
(cd $(OBJ.32); \
env - PATH=$(PATH) $(AUTOCONF_ENV) \
$(SEPARATE_BUILD:yes=../$(VER.32)/)./configure $(AUTOCONF_OPTS.32))
$(AUTOCONF_OUT.64): $(VER.64)/configure | $(OBJ.64)
(cd $(OBJ.64); \
env - PATH=$(PATH) $(AUTOCONF_ENV.64) \
$(SEPARATE_BUILD:yes=../$(VER.64)/)./configure $(AUTOCONF_OPTS.64))
$(VER.32)/$(UNPACK_SENTINEL): $(TARBALL)
-rm -rf $(VER.32) $(OBJ.32)
mkdir -p .unpack32
gtar x -C .unpack32 $(TARBALL_COMPRESS) --no-same-owner -f $(TARBALL)
$(APPLY_PATCHES.32)
mv -f .unpack32/$(VER) ./$(VER.32)
-rmdir .unpack32
$(FROB_SENTINEL.32)
touch $(VER.32)/$(UNPACK_SENTINEL)
$(VER.64)/$(UNPACK_SENTINEL): $(TARBALL)
-rm -rf $(VER.64) $(OBJ.64)
mkdir -p .unpack64
gtar x -C .unpack64 $(TARBALL_COMPRESS) --no-same-owner -f $(TARBALL)
$(APPLY_PATCHES.64)
mv -f .unpack64/$(VER) ./$(VER.64)
-rmdir .unpack64
$(FROB_SENTINEL.64)
touch $(VER.64)/$(UNPACK_SENTINEL)
$(VER.32).build: $(VER.32)/$(UNPACK_SENTINEL)
mkdir -p "$@"
$(VER.64).build: $(VER.64)/$(UNPACK_SENTINEL)
mkdir -p "$@"
clean:
-rm -rf $(VER) $(VER.32) $(VER.64) .unpack32 .unpack64 $(CLEANFILES) \
$(VER.32)strap $(VER.64)strap $(OBJ.32) $(OBJ.64) \
$(CTF.32) $(CTF.64)