@@ -29,30 +29,34 @@ DEFAULT_PREPARE_MAN_CMD = install -m644
29
29
30
30
# Create a directory
31
31
# $(1) is the directory
32
+ #
33
+ # XXX: These defines are called to generate make steps.
34
+ # Adding blank lines means two steps from different defines will not end up on
35
+ # the same line.
32
36
define PREPARE_DIR
33
- @$(Q )$(call E, prepare: $(1 ) )
37
+
38
+ @$(call E, prepare: $(1 ) )
34
39
$(Q )$(PREPARE_DIR_CMD ) $(1 )
40
+
35
41
endef
36
42
37
43
# Copy an executable
38
44
# $(1) is the filename/libname-glob
39
45
#
40
- # Gee, what's up with that $(nop)? See comment below.
46
+ # See above for an explanation on the surrounding blank lines
41
47
define PREPARE_BIN
42
- $( nop )
48
+
43
49
@$(call E, prepare: $(PREPARE_DEST_BIN_DIR ) /$(1 ) )
44
50
$(Q )$(PREPARE_BIN_CMD ) $(PREPARE_SOURCE_BIN_DIR ) /$(1 ) $(PREPARE_DEST_BIN_DIR ) /$(1 )
51
+
45
52
endef
46
53
47
54
# Copy a dylib or rlib
48
55
# $(1) is the filename/libname-glob
49
56
#
50
- # XXX: Don't remove the $(nop) command below!
51
- # Yeah, that's right, it's voodoo. Something in the way this macro is being expanded
52
- # causes it to parse incorrectly. Throwing in that empty command seems to fix the
53
- # problem. I'm sorry, just don't remove the $(nop), alright?
57
+ # See above for an explanation on the surrounding blank lines
54
58
define PREPARE_LIB
55
- $( nop )
59
+
56
60
@$(call E, prepare: $(PREPARE_WORKING_DEST_LIB_DIR ) /$(1 ) )
57
61
$(Q ) LIB_NAME="$(notdir $(lastword $(wildcard $(PREPARE_WORKING_SOURCE_LIB_DIR ) /$(1 ) ) ) ) "; \
58
62
MATCHES="$(filter-out % $(notdir $(lastword $(wildcard $(PREPARE_WORKING_SOURCE_LIB_DIR ) /$(1 ) ) ) ) , \
@@ -64,13 +68,18 @@ define PREPARE_LIB
64
68
echo $$MATCHES ; \
65
69
fi
66
70
$(Q )$(PREPARE_LIB_CMD ) `ls -drt1 $(PREPARE_WORKING_SOURCE_LIB_DIR ) /$(1 ) ` $(PREPARE_WORKING_DEST_LIB_DIR ) /
71
+
67
72
endef
68
73
69
74
# Copy a man page
70
75
# $(1) - source dir
76
+ #
77
+ # See above for an explanation on the surrounding blank lines
71
78
define PREPARE_MAN
79
+
72
80
@$(call E, prepare: $(PREPARE_DEST_MAN_DIR ) /$(1 ) )
73
81
$(Q )$(PREPARE_MAN_CMD ) $(PREPARE_SOURCE_MAN_DIR ) /$(1 ) $(PREPARE_DEST_MAN_DIR ) /$(1 )
82
+
74
83
endef
75
84
76
85
PREPARE_TOOLS = $(filter-out compiletest rustbook error-index-generator, $(TOOLS ) )
0 commit comments