@@ -13,7 +13,7 @@ DIRS := $(sort $(build_bindir) $(build_depsbindir) $(build_libdir) $(build_priva
1313ifneq ($(BUILDROOT ) ,$(JULIAHOME ) )
1414BUILDDIRS := $(BUILDROOT ) $(addprefix $(BUILDROOT ) /,base src src/flisp src/support src/clangsa cli doc deps stdlib test test/clangsa test/embedding test/llvmpasses)
1515BUILDDIRMAKE := $(addsuffix /Makefile,$(BUILDDIRS ) ) $(BUILDROOT ) /sysimage.mk
16- DIRS := $( DIRS ) $(BUILDDIRS )
16+ DIRS += $(BUILDDIRS )
1717$(BUILDDIRMAKE ) : | $(BUILDDIRS )
1818 @# add Makefiles to the build directories for convenience (pointing back to the source location of each)
1919 @echo ' # -- This file is automatically generated in julia/Makefile -- #' > $@
@@ -44,10 +44,6 @@ $(foreach link,base $(JULIAHOME)/test,$(eval $(call symlink_target,$(link),$$(bu
4444julia_flisp.boot.inc.phony : julia-deps
4545 @$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /src julia_flisp.boot.inc.phony
4646
47- # Build the HTML docs (skipped if already exists, notably in tarballs)
48- $(BUILDROOT ) /doc/_build/html/en/index.html : $(shell find $(BUILDROOT ) /base $(BUILDROOT ) /doc \( -path $(BUILDROOT ) /doc/_build -o -path $(BUILDROOT ) /doc/deps -o -name * _constants.jl -o -name * _h.jl -o -name version_git.jl \) -prune -o -type f -print)
49- @$(MAKE ) docs
50-
5147julia-symlink : julia-cli-$(JULIA_BUILD_MODE )
5248ifeq ($(OS ) ,WINNT)
5349 echo '@"%~dp0/'"$$(echo '$(call rel_path,$(BUILDROOT),$(JULIA_EXECUTABLE))')"'" %*' | tr / '\\' > $(BUILDROOT)/julia.bat
@@ -236,7 +232,7 @@ define stringreplace
236232endef
237233
238234
239- install : $(build_depsbindir ) /stringreplace $( BUILDROOT ) /doc/_build/html/en/index.html
235+ install : $(build_depsbindir ) /stringreplace docs
240236 @$(MAKE ) $(QUIET_MAKE ) $(JULIA_BUILD_MODE )
241237 @for subdir in $(bindir ) $(datarootdir ) /julia/stdlib/$(VERSDIR ) $(docdir ) $(man1dir ) $(includedir ) /julia $(libdir ) $(private_libdir ) $(sysconfdir ) $(libexecdir ) ; do \
242238 mkdir -p $(DESTDIR ) $$ subdir; \
484480darwinframework :
485481 $(MAKE ) -C $(JULIAHOME ) /contrib/mac/framework
486482
487- light-source-dist.tmp : $( BUILDROOT ) /doc/_build/html/en/index.html
483+ light-source-dist.tmp : docs
488484ifneq ($(BUILDROOT ) ,$(JULIAHOME ) )
489485 $(error make light-source-dist does not work in out-of-tree builds)
490486endif
@@ -561,12 +557,13 @@ distcleanall: cleanall
561557 @-$(MAKE ) -C $(BUILDROOT ) /deps distcleanall
562558 @-$(MAKE ) -C $(BUILDROOT ) /doc cleanall
563559
564- .PHONY : default debug release check-whitespace release-candidate \
560+ .FORCE :
561+ .PHONY : .FORCE default debug release check-whitespace release-candidate \
565562 julia-debug julia-release julia-stdlib julia-deps julia-deps-libs \
566563 julia-cli-release julia-cli-debug julia-src-release julia-src-debug \
567564 julia-symlink julia-base julia-sysimg julia-sysimg-ji julia-sysimg-release julia-sysimg-debug \
568- test testall testall1 test test- * test-revise- * \
569- clean distcleanall cleanall clean- * \
565+ test testall testall1 test \
566+ clean distcleanall cleanall $( CLEAN_TARGETS ) \
570567 run-julia run-julia-debug run-julia-release run \
571568 install binary-dist light-source-dist.tmp light-source-dist \
572569 dist full-source-dist source-dist
@@ -583,12 +580,12 @@ testall: check-whitespace $(JULIA_BUILD_MODE)
583580testall1 : check-whitespace $(JULIA_BUILD_MODE )
584581 @env JULIA_CPU_THREADS=1 $(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /test all JULIA_BUILD_MODE=$(JULIA_BUILD_MODE )
585582
586- test-% : check-whitespace $(JULIA_BUILD_MODE )
583+ test-% : check-whitespace $(JULIA_BUILD_MODE ) .FORCE
587584 @ ([ $$ (( $$ (date +% s) - $$ (date - r $(build_private_libdir)/ sys.$(SHLIB_EXT) +% s) )) -le 100 ] && \
588585 printf ' \033[93m HINT The system image was recently rebuilt. Are you aware of the test-revise-* targets? See CONTRIBUTING.md. \033[0m\n' ) || true
589586 @$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /test $* JULIA_BUILD_MODE=$(JULIA_BUILD_MODE )
590587
591- test-revise-% :
588+ test-revise-% : .FORCE
592589 @$(MAKE ) $(QUIET_MAKE ) -C $(BUILDROOT ) /test revise-$* JULIA_BUILD_MODE=$(JULIA_BUILD_MODE )
593590
594591# download target for some hardcoded windows dependencies
0 commit comments