File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -23,10 +23,10 @@ PKG_GITMODULES := \
23
23
$(wildcard $(S ) src/llvm/* ) ) \
24
24
$(PKG_LLVM_SKEL )
25
25
26
- PKG_FILES = \
26
+ PKG_FILES : = \
27
27
$(S ) LICENSE.txt $(S ) README.txt \
28
28
$(S ) configure $(S ) Makefile.in \
29
- $(S ) / doc \
29
+ $(S ) doc \
30
30
$(addprefix $(S ) src/, \
31
31
README.txt \
32
32
cargo \
@@ -42,8 +42,9 @@ PKG_FILES = \
42
42
snapshots.txt \
43
43
test) \
44
44
$(PKG_GITMODULES ) \
45
- $(MKFILE_DEPS )
45
+ $(filter-out Makefile config.mk, $( MKFILE_DEPS ) )
46
46
47
+ UNROOTED_PKG_FILES := $(patsubst $(S ) % ,./% ,$(PKG_FILES ) )
47
48
48
49
lic.txt : $(S ) LICENSE.txt
49
50
@$(call E, crlf: $@ )
@@ -58,7 +59,7 @@ $(PKG_TAR): $(PKG_FILES)
58
59
@$(call E, making dist dir)
59
60
$(Q ) rm -Rf dist
60
61
$(Q ) mkdir -p dist/$(PKG_DIR )
61
- $(Q ) tar -c $(PKG_FILES ) | tar -x -C dist/$(PKG_DIR )
62
+ $(Q ) tar -C $( S ) - c $(UNROOTED_PKG_FILES ) | tar -x -C dist/$(PKG_DIR )
62
63
$(Q ) tar -czf $(PKG_TAR ) -C dist $(PKG_DIR )
63
64
$(Q ) rm -Rf dist
64
65
You can’t perform that action at this time.
0 commit comments