Skip to content

Commit 5378d51

Browse files
committed
Fix the dist target to include Much Less Junk from llvm (notably not .git!)
1 parent 882bea5 commit 5378d51

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

mk/dist.mk

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,17 @@ $(PKG_TAR): $(PKG_FILES)
4949
@$(call E, making dist dir)
5050
$(Q)rm -Rf dist
5151
$(Q)mkdir -p dist/$(PKG_DIR)
52-
$(Q)tar -C $(S) -c $(UNROOTED_PKG_FILES) | tar -x -C dist/$(PKG_DIR)
52+
$(Q)tar \
53+
-C $(S) \
54+
--exclude-vcs \
55+
--exclude=*~ \
56+
--exclude=*/llvm/test/*/*.ll \
57+
--exclude=*/llvm/test/*/*.td \
58+
--exclude=*/llvm/test/*/*.s \
59+
--exclude=*/llvm/test/*/*/*.ll \
60+
--exclude=*/llvm/test/*/*/*.td \
61+
--exclude=*/llvm/test/*/*/*.s \
62+
-c $(UNROOTED_PKG_FILES) | tar -x -C dist/$(PKG_DIR)
5363
$(Q)tar -czf $(PKG_TAR) -C dist $(PKG_DIR)
5464
$(Q)rm -Rf dist
5565

0 commit comments

Comments
 (0)