Skip to content

Commit 0fba2d0

Browse files
committed
Fix 'make distcheck', close #1445.
1 parent 1592de0 commit 0fba2d0

File tree

2 files changed

+30
-44
lines changed

2 files changed

+30
-44
lines changed

Makefile.in

+3-3
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ STDLIB_INPUTS := $(wildcard $(addprefix $(S)src/libstd/, \
209209
######################################################################
210210

211211
COMPILER_CRATE := $(S)src/comp/rustc.rc
212-
COMPILER_INPUTS := $(filter-out $(S)src/comp/driver/rustc.rs, \
213-
$(wildcard $(addprefix $(S)src/comp/, \
214-
rustc.rc *.rs */*.rs */*/*.rs)))
212+
COMPILER_INPUTS := $(filter-out $(S)src/comp/driver/rustc.rs, \
213+
$(wildcard $(addprefix $(S)src/comp/, \
214+
rustc.rc *.rs */*.rs */*/*.rs)))
215215

216216
RUSTC_INPUTS := $(S)src/comp/driver/rustc.rs
217217

mk/dist.mk

+27-41
Original file line numberDiff line numberDiff line change
@@ -13,51 +13,37 @@ PKG_NSI = $(S)src/etc/pkg/rust.nsi
1313
PKG_EXE = $(PKG_DIR)-install.exe
1414
endif
1515

16-
PKG_3RDPARTY := rt/vg/valgrind.h rt/vg/memcheck.h \
17-
rt/isaac/rand.h rt/isaac/standard.h \
18-
rt/uthash/uthash.h rt/uthash/utlist.h \
19-
rt/bigint/bigint.h rt/bigint/bigint_int.cpp \
20-
rt/bigint/bigint_ext.cpp rt/bigint/low_primes.h
16+
PKG_OMIT_LLVM_DIRS := examples bindings/ocaml projects
17+
PKG_OMIT_LLVM_PATS := $(foreach d,$(PKG_OMIT_LLVM_DIRS), %$(d))
18+
PKG_LLVM_SKEL := $(foreach d,$(PKG_OMIT_LLVM_DIRS), \
19+
$(wildcard $(S)src/llvm/$(d)/*.in \
20+
$(S)src/llvm/$(d)/Makefile*))
2121

22-
PKG_UV := \
23-
$(wildcard $(S)src/libuv/*) \
24-
$(wildcard $(S)src/libuv/include/*) \
25-
$(wildcard $(S)src/libuv/include/*/*) \
26-
$(wildcard $(S)src/libuv/src/*) \
27-
$(wildcard $(S)src/libuv/src/*/*) \
28-
$(wildcard $(S)src/libuv/src/*/*/*)
29-
30-
PKG_PP_EXAMPLES = $(wildcard $(S)src/test/pretty/*.pp)
22+
PKG_GITMODULES := \
23+
$(filter-out %test, $(wildcard $(S)src/libuv/*)) \
24+
$(filter-out $(PKG_OMIT_LLVM_PATS), \
25+
$(wildcard $(S)src/llvm/*)) \
26+
$(PKG_LLVM_SKEL)
3127

3228
PKG_FILES = \
33-
$(wildcard $(S)src/etc/*.*) \
3429
$(S)LICENSE.txt $(S)README \
3530
$(S)configure $(S)Makefile.in \
36-
$(S)src/snapshots.txt \
31+
$(S)/doc \
3732
$(addprefix $(S)src/, \
38-
README comp/README \
39-
$(RUNTIME_CS) $(RUNTIME_HDR) \
40-
$(RUNTIME_S) \
41-
rt/rustrt.def.in \
42-
rt/intrinsics/intrinsics.i386.ll.in \
43-
rt/intrinsics/intrinsics.x86_64.ll.in \
44-
rt/intrinsics/intrinsics.cpp \
45-
$(RUSTLLVM_LIB_CS) $(RUSTLLVM_OBJS_CS) \
46-
$(RUSTLLVM_HDR) \
47-
rustllvm/rustllvm.def.in \
48-
$(PKG_3RDPARTY)) \
49-
$(PKG_UV) \
50-
$(COMPILER_INPUTS) \
51-
$(CORELIB_INPUTS) \
52-
$(STDLIB_INPUTS) \
53-
$(ALL_TEST_INPUTS) \
54-
$(FUZZER_CRATE) \
55-
$(FUZZER_INPUTS) \
56-
$(COMPILETEST_CRATE) \
57-
$(COMPILETEST_INPUTS) \
58-
$(CARGO_CRATE) \
59-
$(CARGO_INPUTS) \
60-
$(PKG_PP_EXAMPLES) \
33+
README \
34+
cargo \
35+
comp \
36+
compiletest \
37+
etc \
38+
fuzzer \
39+
libcore \
40+
libstd \
41+
rt \
42+
rustdoc \
43+
rustllvm \
44+
snapshots.txt \
45+
test) \
46+
$(PKG_GITMODULES) \
6147
$(MKFILE_DEPS)
6248

6349
dist: $(PKG_TAR) $(PKG_EXE)
@@ -90,9 +76,9 @@ distcheck: $(PKG_TAR)
9076
$(Q)mkdir -p dist/$(PKG_DIR)-build
9177
$(Q)cd dist/$(PKG_DIR)-build && ../$(PKG_DIR)/configure
9278
@$(call E, making 'check' in dist/$(PKG_DIR)-build)
93-
$(Q)make -C dist/$(PKG_DIR)-build check
79+
$(Q)+make -C dist/$(PKG_DIR)-build check
9480
@$(call E, making 'clean' in dist/$(PKG_DIR)-build)
95-
$(Q)make -C dist/$(PKG_DIR)-build clean
81+
$(Q)+make -C dist/$(PKG_DIR)-build clean
9682
$(Q)rm -Rf dist
9783
@echo
9884
@echo -----------------------------------------------

0 commit comments

Comments
 (0)