Skip to content

Commit 85ffe95

Browse files
Revert "Merge pull request #13385 from kartg/build-dist-make-target"
This reverts commit ea4bdac, reversing changes made to 3059182.
1 parent ea4bdac commit 85ffe95

File tree

1 file changed

+6
-28
lines changed

1 file changed

+6
-28
lines changed

Makefile

Lines changed: 6 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,6 @@ endef
138138
# --------------------------------------------------------------------
139139

140140
.PHONY: source-dist clean-source-dist
141-
.PHONY: source-bundle clean-source-bundle
142141

143142
SOURCE_DIST_BASE ?= rabbitmq-server
144143
SOURCE_DIST_SUFFIXES ?= tar.xz
@@ -150,13 +149,6 @@ SOURCE_DIST_FILES = $(addprefix $(SOURCE_DIST).,$(SOURCE_DIST_SUFFIXES))
150149

151150
.PHONY: $(SOURCE_DIST_FILES)
152151

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)
160152
source-dist: $(SOURCE_DIST_FILES)
161153
@:
162154

@@ -165,9 +157,7 @@ RSYNC_V_0 =
165157
RSYNC_V_1 = -v
166158
RSYNC_V_2 = -v
167159
RSYNC_V = $(RSYNC_V_$(V))
168-
BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
169-
--delete \
170-
--delete-excluded \
160+
RSYNC_FLAGS += -a $(RSYNC_V) \
171161
--exclude '.sw?' --exclude '.*.sw?' \
172162
--exclude '*.beam' \
173163
--exclude '*.d' \
@@ -198,10 +188,12 @@ BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
198188
--exclude '$(notdir $(DEPS_DIR))/' \
199189
--exclude 'hexer*' \
200190
--exclude 'logs/' \
191+
--exclude 'packaging' \
201192
--exclude 'PKG_*.md' \
202193
--exclude '/plugins/' \
203194
--include 'cli/plugins' \
204195
--exclude '$(notdir $(DIST_DIR))/' \
196+
--exclude 'test' \
205197
--exclude '/$(notdir $(PACKAGES_DIR))/' \
206198
--exclude '/PACKAGES/' \
207199
--exclude '/amqp_client/doc/' \
@@ -216,21 +208,9 @@ BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
216208
--exclude '/ranch/doc/' \
217209
--exclude '/ranch/examples/' \
218210
--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
234214

235215
TAR ?= tar
236216
TAR_V_0 =
@@ -395,8 +375,6 @@ $(SOURCE_DIST).zip: $(SOURCE_DIST).manifest
395375

396376
clean:: clean-source-dist
397377

398-
clean-source-bundle:: clean-source-dist
399-
400378
clean-source-dist:
401379
$(gen_verbose) rm -rf -- $(SOURCE_DIST_BASE)-*
402380

0 commit comments

Comments
 (0)