@@ -13,51 +13,37 @@ PKG_NSI = $(S)src/etc/pkg/rust.nsi
13
13
PKG_EXE = $(PKG_DIR ) -install.exe
14
14
endif
15
15
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 * ) )
21
21
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 )
31
27
32
28
PKG_FILES = \
33
- $(wildcard $(S ) src/etc/* .* ) \
34
29
$(S ) LICENSE.txt $(S ) README \
35
30
$(S ) configure $(S ) Makefile.in \
36
- $(S ) src/snapshots.txt \
31
+ $(S ) /doc \
37
32
$(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 ) \
61
47
$(MKFILE_DEPS )
62
48
63
49
dist : $(PKG_TAR ) $(PKG_EXE )
@@ -90,9 +76,9 @@ distcheck: $(PKG_TAR)
90
76
$(Q ) mkdir -p dist/$(PKG_DIR ) -build
91
77
$(Q ) cd dist/$(PKG_DIR ) -build && ../$(PKG_DIR ) /configure
92
78
@$(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
94
80
@$(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
96
82
$(Q ) rm -Rf dist
97
83
@echo
98
84
@echo -----------------------------------------------
0 commit comments