@@ -9,7 +9,7 @@ all: debug release
9
9
# sort is used to remove potential duplicates
10
10
DIRS := $(sort $(build_bindir ) $(build_depsbindir ) $(build_libdir ) $(build_private_libdir ) $(build_libexecdir ) $(build_includedir ) $(build_includedir ) /julia $(build_sysconfdir ) /julia $(build_datarootdir ) /julia $(build_datarootdir ) /julia/stdlib $(build_man1dir ) )
11
11
ifneq ($(BUILDROOT ) ,$(JULIAHOME ) )
12
- BUILDDIRS := $(BUILDROOT ) $(addprefix $(BUILDROOT ) /,base src ui doc deps test test/embedding test/llvmpasses)
12
+ BUILDDIRS := $(BUILDROOT ) $(addprefix $(BUILDROOT ) /,base src ui doc deps stdlib test test/embedding test/llvmpasses)
13
13
BUILDDIRMAKE := $(addsuffix /Makefile,$(BUILDDIRS ) )
14
14
DIRS := $(DIRS ) $(BUILDDIRS )
15
15
$(BUILDDIRMAKE ) : | $(BUILDDIRS )
39
39
$(foreach dir,$(DIRS),$(eval $(call dir_target,$(dir))))
40
40
$(foreach link,base $(JULIAHOME)/test,$(eval $(call symlink_target,$(link),$(build_datarootdir)/julia,$(notdir $(link)))))
41
41
42
- build_defaultpkgdir = $(build_datarootdir ) /julia/stdlib/$(shell echo $(VERSDIR ) )
43
- $(eval $(call symlink_target,$(JULIAHOME)/stdlib,$(build_datarootdir)/julia/stdlib,$(shell echo $(VERSDIR))))
44
-
45
42
julia_flisp.boot.inc.phony : julia-deps
46
43
@$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /src julia_flisp.boot.inc.phony
47
44
@@ -56,9 +53,12 @@ ifndef JULIA_VAGRANT_BUILD
56
53
endif
57
54
endif
58
55
59
- julia-deps : | $(DIRS ) $(build_datarootdir ) /julia/base $(build_datarootdir ) /julia/test $( build_defaultpkgdir )
56
+ julia-deps : | $(DIRS ) $(build_datarootdir ) /julia/base $(build_datarootdir ) /julia/test
60
57
@$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /deps
61
58
59
+ julia-stdlib : | $(DIRS )
60
+ @$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /stdlib
61
+
62
62
julia-base : julia-deps $(build_sysconfdir ) /julia/startup.jl $(build_man1dir ) /julia.1 $(build_datarootdir ) /julia/julia-config.jl
63
63
@$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /base
64
64
@@ -74,10 +74,10 @@ julia-ui-release julia-ui-debug : julia-ui-% : julia-src-%
74
74
julia-sysimg : julia-base julia-ui-$(JULIA_BUILD_MODE )
75
75
@$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) $(build_private_libdir ) /sys.ji JULIA_EXECUTABLE=' $(JULIA_EXECUTABLE)'
76
76
77
- julia-sysimg-release : julia-sysimg julia-ui-release
77
+ julia-sysimg-release : julia-stdlib julia- sysimg julia-ui-release
78
78
@$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) $(build_private_libdir ) /sys.$(SHLIB_EXT )
79
79
80
- julia-sysimg-debug : julia-sysimg julia-ui-debug
80
+ julia-sysimg-debug : julia-stdlib julia- sysimg julia-ui-debug
81
81
@$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) $(build_private_libdir ) /sys-debug.$(SHLIB_EXT )
82
82
83
83
julia-debug julia-release : julia-% : julia-ui-% julia-sysimg-% julia-symlink julia-libccalltest julia-base-cache
@@ -527,10 +527,11 @@ source-dist:
527
527
full-source-dist : light-source-dist.tmp
528
528
# Get all the dependencies downloaded
529
529
@$(MAKE ) -C deps getall NO_GIT=1
530
+ @$(MAKE ) -C stdlib getall
530
531
531
532
# Create file full-source-dist.tmp to hold all the filenames that go into the tarball
532
533
cp light-source-dist.tmp full-source-dist.tmp
533
- -ls deps/srccache/*.tar.gz deps/srccache/*.tar.bz2 deps/srccache/*.tar.xz deps/srccache/*.tgz deps/srccache/*.zip deps/srccache/*.pem >> full-source-dist.tmp
534
+ -ls deps/srccache/*.tar.gz deps/srccache/*.tar.bz2 deps/srccache/*.tar.xz deps/srccache/*.tgz deps/srccache/*.zip deps/srccache/*.pem stdlib/srccache/*.tar.gz >> full-source-dist.tmp
534
535
535
536
# Prefix everything with the current directory name (usually "julia"), then create tarball
536
537
DIRNAME=$$(basename $$(pwd)); \
@@ -543,6 +544,7 @@ clean: | $(CLEAN_TARGETS)
543
544
@-$(MAKE ) -C $(BUILDROOT ) /src clean
544
545
@-$(MAKE ) -C $(BUILDROOT ) /ui clean
545
546
@-$(MAKE ) -C $(BUILDROOT ) /test clean
547
+ @-$(MAKE ) -C $(BUILDROOT ) /stdlib clean-pkg
546
548
-rm -f $(BUILDROOT ) /julia
547
549
-rm -f $(BUILDROOT ) /* .tar.gz
548
550
-rm -f $(build_depsbindir ) /stringreplace \
0 commit comments