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