@@ -138,7 +138,6 @@ endef
138
138
# --------------------------------------------------------------------
139
139
140
140
.PHONY : source-dist clean-source-dist
141
- .PHONY : source-bundle clean-source-bundle
142
141
143
142
SOURCE_DIST_BASE ?= rabbitmq-server
144
143
SOURCE_DIST_SUFFIXES ?= tar.xz
@@ -150,13 +149,6 @@ SOURCE_DIST_FILES = $(addprefix $(SOURCE_DIST).,$(SOURCE_DIST_SUFFIXES))
150
149
151
150
.PHONY : $(SOURCE_DIST_FILES )
152
151
153
- # Override rsync flags as a pre-requisite
154
- source-bundle : RSYNC_FLAGS = $(SOURCE_BUNDLE_RSYNC_FLAGS )
155
- source-bundle : $(SOURCE_DIST_FILES )
156
- @:
157
-
158
- # Override rsync flags as a pre-requisite
159
- source-dist : RSYNC_FLAGS = $(SOURCE_DIST_RSYNC_FLAGS )
160
152
source-dist : $(SOURCE_DIST_FILES )
161
153
@:
162
154
@@ -165,9 +157,7 @@ RSYNC_V_0 =
165
157
RSYNC_V_1 = -v
166
158
RSYNC_V_2 = -v
167
159
RSYNC_V = $(RSYNC_V_$(V ) )
168
- BASE_RSYNC_FLAGS += -a $(RSYNC_V ) \
169
- --delete \
170
- --delete-excluded \
160
+ RSYNC_FLAGS += -a $(RSYNC_V ) \
171
161
--exclude '.sw?' --exclude '.*.sw?' \
172
162
--exclude '*.beam' \
173
163
--exclude '*.d' \
@@ -198,10 +188,12 @@ BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
198
188
--exclude '$(notdir $(DEPS_DIR ) ) /' \
199
189
--exclude 'hexer*' \
200
190
--exclude 'logs/' \
191
+ --exclude 'packaging' \
201
192
--exclude 'PKG_*.md' \
202
193
--exclude '/plugins/' \
203
194
--include 'cli/plugins' \
204
195
--exclude '$(notdir $(DIST_DIR ) ) /' \
196
+ --exclude 'test' \
205
197
--exclude '/$(notdir $(PACKAGES_DIR ) ) /' \
206
198
--exclude '/PACKAGES/' \
207
199
--exclude '/amqp_client/doc/' \
@@ -216,21 +208,9 @@ BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
216
208
--exclude '/ranch/doc/' \
217
209
--exclude '/ranch/examples/' \
218
210
--exclude '/sockjs/examples/' \
219
- --exclude '/workflow_sources/'
220
-
221
- SOURCE_DIST_RSYNC_FLAGS += $(BASE_RSYNC_FLAGS ) \
222
- --exclude 'packaging' \
223
- --exclude 'test'
224
-
225
- # For source-bundle, explicitly include folders that are needed
226
- # for tests to execute. These are added before excludes from
227
- # the base flags so rsync honors the first match.
228
- SOURCE_BUNDLE_RSYNC_FLAGS += \
229
- --include 'rabbit_shovel_test/ebin' \
230
- --include 'rabbit_shovel_test/ebin/*' \
231
- --include 'rabbitmq_ct_helpers/tools' \
232
- --include 'rabbitmq_ct_helpers/tools/*' \
233
- $(BASE_RSYNC_FLAGS )
211
+ --exclude '/workflow_sources/' \
212
+ --delete \
213
+ --delete-excluded
234
214
235
215
TAR ?= tar
236
216
TAR_V_0 =
@@ -395,8 +375,6 @@ $(SOURCE_DIST).zip: $(SOURCE_DIST).manifest
395
375
396
376
clean :: clean-source-dist
397
377
398
- clean-source-bundle :: clean-source-dist
399
-
400
378
clean-source-dist :
401
379
$(gen_verbose ) rm -rf -- $(SOURCE_DIST_BASE ) -*
402
380
0 commit comments