@@ -111,7 +111,6 @@ endef
111111# --------------------------------------------------------------------
112112
113113.PHONY : source-dist clean-source-dist
114- .PHONY : source-bundle clean-source-bundle
115114
116115SOURCE_DIST_BASE ?= rabbitmq-server
117116SOURCE_DIST_SUFFIXES ?= tar.xz
@@ -123,13 +122,6 @@ SOURCE_DIST_FILES = $(addprefix $(SOURCE_DIST).,$(SOURCE_DIST_SUFFIXES))
123122
124123.PHONY : $(SOURCE_DIST_FILES )
125124
126- # Override rsync flags as a pre-requisite
127- source-bundle : RSYNC_FLAGS = $(SOURCE_BUNDLE_RSYNC_FLAGS )
128- source-bundle : $(SOURCE_DIST_FILES )
129- @:
130-
131- # Override rsync flags as a pre-requisite
132- source-dist : RSYNC_FLAGS = $(SOURCE_DIST_RSYNC_FLAGS )
133125source-dist : $(SOURCE_DIST_FILES )
134126 @:
135127
@@ -138,9 +130,7 @@ RSYNC_V_0 =
138130RSYNC_V_1 = -v
139131RSYNC_V_2 = -v
140132RSYNC_V = $(RSYNC_V_$(V ) )
141- BASE_RSYNC_FLAGS += -a $(RSYNC_V ) \
142- --delete \
143- --delete-excluded \
133+ RSYNC_FLAGS += -a $(RSYNC_V ) \
144134 --exclude '.sw?' --exclude '.*.sw?' \
145135 --exclude '*.beam' \
146136 --exclude '*.d' \
@@ -172,6 +162,7 @@ BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
172162 --exclude '$(notdir $(DEPS_DIR ) ) /' \
173163 --exclude 'hexer*' \
174164 --exclude 'logs/' \
165+ --exclude 'packaging' \
175166 --exclude 'PKG_*.md' \
176167 --exclude '/plugins/' \
177168 --include 'cli/plugins' \
@@ -194,21 +185,9 @@ BASE_RSYNC_FLAGS += -a $(RSYNC_V) \
194185 --exclude '/ranch/doc/' \
195186 --exclude '/ranch/examples/' \
196187 --exclude '/sockjs/examples/' \
197- --exclude '/workflow_sources/'
198-
199- SOURCE_DIST_RSYNC_FLAGS += $(BASE_RSYNC_FLAGS ) \
200- --exclude 'packaging' \
201- --exclude 'test'
202-
203- # For source-bundle, explicitly include folders that are needed
204- # for tests to execute. These are added before excludes from
205- # the base flags so rsync honors the first match.
206- SOURCE_BUNDLE_RSYNC_FLAGS += \
207- --include 'rabbit_shovel_test/ebin' \
208- --include 'rabbit_shovel_test/ebin/*' \
209- --include 'rabbitmq_ct_helpers/tools' \
210- --include 'rabbitmq_ct_helpers/tools/*' \
211- $(BASE_RSYNC_FLAGS )
188+ --exclude '/workflow_sources/' \
189+ --delete \
190+ --delete-excluded
212191
213192TAR ?= tar
214193TAR_V_0 =
@@ -373,8 +352,6 @@ $(SOURCE_DIST).zip: $(SOURCE_DIST).manifest
373352
374353clean :: clean-source-dist
375354
376- clean-source-bundle :: clean-source-dist
377-
378355clean-source-dist :
379356 $(gen_verbose ) rm -rf -- $(SOURCE_DIST_BASE ) -*
380357
0 commit comments