Skip to content

Commit

Permalink
Fewer warnings in 'make clean' in clean directory (JuliaLang#44450)
Browse files Browse the repository at this point in the history
* Fewer warnings in 'make clean' in clean directory

* Don't ignore exit code for 'rm -rf'
  • Loading branch information
fingolfin committed Mar 30, 2022
1 parent bbdd5d7 commit 4b58679
Show file tree
Hide file tree
Showing 30 changed files with 63 additions and 63 deletions.
4 changes: 2 additions & 2 deletions Make.inc
Original file line number Diff line number Diff line change
Expand Up @@ -1394,15 +1394,15 @@ clean-$$(abspath $(2)/$(3)):
ifeq ($(BUILD_OS), WINNT)
-cmd //C rmdir $$(call mingw_to_dos,$(2)/$(3),cd $(2) &&)
else
-rm -r $$(abspath $(2)/$(3))
rm -rf $$(abspath $(2)/$(3))
endif
$$(abspath $(2)/$(3)): | $$(abspath $(2))
ifeq ($$(BUILD_OS), WINNT)
@cmd //C mklink //J $$(call mingw_to_dos,$(2)/$(3),cd $(2) &&) $$(call mingw_to_dos,$(1),)
else ifneq (,$$(findstring CYGWIN,$$(BUILD_OS)))
@cmd /C mklink /J $$(call cygpath_w,$(2)/$(3)) $$(call cygpath_w,$(1))
else ifdef JULIA_VAGRANT_BUILD
@rm -r $$@
@rm -rf $$@
@cp -R $$(abspath $(1)) [email protected]
@mv [email protected] $$@
else
Expand Down
6 changes: 3 additions & 3 deletions base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ $$(build_private_libdir)/$$(libname_$2):
REALPATH=$$(libpath_$2); \
$$(call resolve_path,REALPATH) && \
[ -e "$$$$REALPATH" ] && \
([ ! -e "$$@" ] || rm "$$@") && \
rm -f "$$@" && \
echo ln -sf "$$$$REALPATH" "$$@" && \
ln -sf "$$$$REALPATH" "$$@"; \
else \
Expand All @@ -193,7 +193,7 @@ endif

$(build_bindir)/7z$(EXE):
[ -e "$(7Z_PATH)" ] && \
([ ! -e "$@" ] || rm "$@") && \
rm -f "$@" && \
ln -svf "$(7Z_PATH)" "$@"

# the following excludes: libuv.a, libutf8proc.a
Expand Down Expand Up @@ -258,7 +258,7 @@ $(build_private_libdir)/libLLVM.$(SHLIB_EXT):
REALPATH=$(LLVM_CONFIG_HOST_LIBS) && \
$(call resolve_path,REALPATH) && \
[ -e "$$REALPATH" ] && \
([ ! -e "$@" ] || rm "$@") && \
rm -f "$@" && \
echo ln -sf "$$REALPATH" "$@" && \
ln -sf "$$REALPATH" "$@"
ifneq ($(USE_SYSTEM_LLVM),0)
Expand Down
4 changes: 2 additions & 2 deletions contrib/mac/frameworkapp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ signedproductarchive: $(PRODUCTARCHIVE)
mv $<.signed $<

clean:
-rm -rf $(XCARCHIVE) $(XCDERIVEDDATA) $(XCEXPORT)
-rm -rf $(FRAMEWORK_DESTDIR)
rm -rf $(XCARCHIVE) $(XCDERIVEDDATA) $(XCEXPORT)
rm -rf $(FRAMEWORK_DESTDIR)
-rm -f $(PRODUCTARCHIVE)

.PHONY: appexport clean productarchive signedproductarchive
Expand Down
4 changes: 2 additions & 2 deletions deps/curl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libcurl.$$(SHLIB_EXT) $$(build_shlibdir)/libcurl.$$(SHLIB_EXT)))

clean-curl:
-rm $(BUILDDIR)/curl-$(CURL_VER)/build-configured $(BUILDDIR)/curl-$(CURL_VER)/build-compiled
-rm -f $(BUILDDIR)/curl-$(CURL_VER)/build-configured $(BUILDDIR)/curl-$(CURL_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/curl-$(CURL_VER) clean

distclean-curl:
-rm -rf $(SRCCACHE)/curl-$(CURL_VER).tar.bz2 $(SRCCACHE)/curl-$(CURL_VER) $(BUILDDIR)/curl-$(CURL_VER)
rm -rf $(SRCCACHE)/curl-$(CURL_VER).tar.bz2 $(SRCCACHE)/curl-$(CURL_VER) $(BUILDDIR)/curl-$(CURL_VER)

get-curl: $(SRCCACHE)/curl-$(CURL_VER).tar.bz2
extract-curl: $(SRCCACHE)/curl-$(CURL_VER)/source-extracted
Expand Down
8 changes: 4 additions & 4 deletions deps/dsfmt.mk
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $(SRCCACHE)/dsfmt-$(DSFMT_VER).tar.gz: | $(SRCCACHE)

$(BUILDDIR)/dsfmt-$(DSFMT_VER)/source-extracted: $(SRCCACHE)/dsfmt-$(DSFMT_VER).tar.gz
$(JLCHECKSUM) $<
-rm -r $(dir $@)
rm -rf $(dir $@)
mkdir -p $(dir $@)
$(TAR) -C $(dir $@) --strip-components 1 -xf $<
echo 1 > $@
Expand Down Expand Up @@ -47,11 +47,11 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libdSFMT.$$(SHLIB_EXT) $$(build_shlibdir)/libdSFMT.$$(SHLIB_EXT)))

clean-dsfmt:
-rm $(BUILDDIR)/dsfmt-$(DSFMT_VER)/build-compiled
-rm $(BUILDDIR)/dsfmt-$(DSFMT_VER)/libdSFMT.$(SHLIB_EXT)
-rm -f $(BUILDDIR)/dsfmt-$(DSFMT_VER)/build-compiled
-rm -f $(BUILDDIR)/dsfmt-$(DSFMT_VER)/libdSFMT.$(SHLIB_EXT)

distclean-dsfmt:
-rm -rf $(SRCCACHE)/dsfmt*.tar.gz $(SRCCACHE)/dsfmt-$(DSFMT_VER) $(BUILDDIR)/dsfmt-$(DSFMT_VER)
rm -rf $(SRCCACHE)/dsfmt*.tar.gz $(SRCCACHE)/dsfmt-$(DSFMT_VER) $(BUILDDIR)/dsfmt-$(DSFMT_VER)

get-dsfmt: $(SRCCACHE)/dsfmt-$(DSFMT_VER).tar.gz
extract-dsfmt: $(BUILDDIR)/dsfmt-$(DSFMT_VER)/source-extracted
Expand Down
4 changes: 2 additions & 2 deletions deps/gmp.mk
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,11 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libgmp.$$(SHLIB_EXT) $$(build_shlibdir)/libgmp.$$(SHLIB_EXT)))

clean-gmp:
-rm $(BUILDDIR)/gmp-$(GMP_VER)/build-configured $(BUILDDIR)/gmp-$(GMP_VER)/build-compiled
-rm -f $(BUILDDIR)/gmp-$(GMP_VER)/build-configured $(BUILDDIR)/gmp-$(GMP_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/gmp-$(GMP_VER) clean

distclean-gmp:
-rm -rf $(SRCCACHE)/gmp-$(GMP_VER).tar.bz2 \
rm -rf $(SRCCACHE)/gmp-$(GMP_VER).tar.bz2 \
$(SRCCACHE)/gmp-$(GMP_VER) \
$(BUILDDIR)/gmp-$(GMP_VER)

Expand Down
4 changes: 2 additions & 2 deletions deps/libgit2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libgit2.$$(SHLIB_EXT) $$(build_shlibdir)/libgit2.$$(SHLIB_EXT)))

clean-libgit2:
-rm $(build_datarootdir)/julia/cert.pem
-rm $(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-configured $(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-compiled
-rm -f $(build_datarootdir)/julia/cert.pem
-rm -f $(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-configured $(BUILDDIR)/$(LIBGIT2_SRC_DIR)/build-compiled
-$(MAKE) -C $(BUILDDIR)/$(LIBGIT2_SRC_DIR) clean

get-libgit2: $(LIBGIT2_SRC_FILE)
Expand Down
2 changes: 1 addition & 1 deletion deps/libssh2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libssh2.$$(SHLIB_EXT) $$(build_shlibdir)/libssh2.$$(SHLIB_EXT)))

clean-libssh2:
-rm $(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-configured $(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-compiled
-rm -f $(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-configured $(BUILDDIR)/$(LIBSSH2_SRC_DIR)/build-compiled
-$(MAKE) -C $(BUILDDIR)/$(LIBSSH2_SRC_DIR) clean


Expand Down
8 changes: 4 additions & 4 deletions deps/libsuitesparse.mk
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,13 @@ $(build_prefix)/manifest/libsuitesparse: $(BUILDDIR)/SuiteSparse-$(LIBSUITESPARS
echo $(UNINSTALL_libsuitesparse) > $@

clean-libsuitesparse: uninstall-libsuitesparse
-rm $(BUILDDIR)/SuiteSparse-$(LIBSUITESPARSE_VER)/build-compiled
-rm -f $(BUILDDIR)/SuiteSparse-$(LIBSUITESPARSE_VER)/build-compiled
-rm -fr $(BUILDDIR)/SuiteSparse-$(LIBSUITESPARSE_VER)/lib
-rm -fr $(BUILDDIR)/SuiteSparse-$(LIBSUITESPARSE_VER)/include
-$(MAKE) -C $(BUILDDIR)/SuiteSparse-$(LIBSUITESPARSE_VER) clean

distclean-libsuitesparse:
-rm -rf $(SRCCACHE)/SuiteSparse-$(LIBSUITESPARSE_VER).tar.gz \
rm -rf $(SRCCACHE)/SuiteSparse-$(LIBSUITESPARSE_VER).tar.gz \
$(BUILDDIR)/SuiteSparse-$(LIBSUITESPARSE_VER)

get-libsuitesparse: $(SRCCACHE)/SuiteSparse-$(LIBSUITESPARSE_VER).tar.gz
Expand All @@ -107,6 +107,6 @@ endif

define manual_libsuitesparse
uninstall-libsuitesparse:
-rm $(build_prefix)/manifest/libsuitesparse
-rm $(addprefix $(build_shlibdir)/lib,$3)
-rm -f $(build_prefix)/manifest/libsuitesparse
-rm -f $(addprefix $(build_shlibdir)/lib,$3)
endef
2 changes: 1 addition & 1 deletion deps/libuv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libuv.$$(SHLIB_EXT) $$(build_shlibdir)/libuv.$$(SHLIB_EXT)))

clean-libuv:
-rm -rf $(LIBUV_BUILDDIR)/build-configured $(LIBUV_BUILDDIR)/build-compiled
rm -rf $(LIBUV_BUILDDIR)/build-configured $(LIBUV_BUILDDIR)/build-compiled
-$(MAKE) -C $(LIBUV_BUILDDIR) clean


Expand Down
2 changes: 1 addition & 1 deletion deps/libwhich.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $(eval $(call staged-install, \
LIBWHICH_INSTALL,,,))

clean-libwhich:
-rm $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-compiled
-rm -f $(BUILDDIR)/$(LIBWHICH_SRC_DIR)/build-compiled
-$(MAKE) -C $(BUILDDIR)/$(LIBWHICH_SRC_DIR) clean

get-libwhich: $(LIBWHICH_SRC_FILE)
Expand Down
2 changes: 1 addition & 1 deletion deps/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ $(eval $(call staged-install, \
LLVM_INSTALL,,,))

clean-llvm:
-rm $(LLVM_BUILDDIR_withtype)/build-configured $(LLVM_BUILDDIR_withtype)/build-compiled
-rm -f $(LLVM_BUILDDIR_withtype)/build-configured $(LLVM_BUILDDIR_withtype)/build-compiled
-$(MAKE) -C $(LLVM_BUILDDIR_withtype) clean

get-llvm: $(LLVM_SRC_FILE)
Expand Down
4 changes: 2 additions & 2 deletions deps/mbedtls.mk
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ $(eval $(call staged-install, \


clean-mbedtls:
-rm $(BUILDDIR)/$(MBEDTLS_SRC)/build-configured \
-rm -f $(BUILDDIR)/$(MBEDTLS_SRC)/build-configured \
$(BUILDDIR)/$(MBEDTLS_SRC)/build-compiled
-$(MAKE) -C $(BUILDDIR)/$(MBEDTLS_SRC) clean

distclean-mbedtls:
-rm -rf $(SRCCACHE)/$(MBEDTLS_SRC).tar.gz \
rm -rf $(SRCCACHE)/$(MBEDTLS_SRC).tar.gz \
$(SRCCACHE)/$(MBEDTLS_SRC) \
$(BUILDDIR)/$(MBEDTLS_SRC)

Expand Down
4 changes: 2 additions & 2 deletions deps/mpfr.mk
Original file line number Diff line number Diff line change
Expand Up @@ -60,11 +60,11 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libmpfr.$$(SHLIB_EXT) $$(build_shlibdir)/libmpfr.$$(SHLIB_EXT)))

clean-mpfr:
-rm $(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured $(BUILDDIR)/mpfr-$(MPFR_VER)/build-compiled
-rm -f $(BUILDDIR)/mpfr-$(MPFR_VER)/build-configured $(BUILDDIR)/mpfr-$(MPFR_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/mpfr-$(MPFR_VER) clean

distclean-mpfr:
-rm -rf $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2 \
rm -rf $(SRCCACHE)/mpfr-$(MPFR_VER).tar.bz2 \
$(SRCCACHE)/mpfr-$(MPFR_VER) \
$(BUILDDIR)/mpfr-$(MPFR_VER)

Expand Down
4 changes: 2 additions & 2 deletions deps/nghttp2.mk
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libnghttp2.$$(SHLIB_EXT) $$(build_shlibdir)/libnghttp2.$$(SHLIB_EXT)))

clean-nghttp2:
-rm $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-configured $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-compiled
-rm -f $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-configured $(BUILDDIR)/nghttp2-$(NGHTTP2_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/nghttp2-$(NGHTTP2_VER) clean

distclean-nghttp2:
-rm -rf $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2 \
rm -rf $(SRCCACHE)/nghttp2-$(NGHTTP2_VER).tar.bz2 \
$(SRCCACHE)/nghttp2-$(NGHTTP2_VER) \
$(BUILDDIR)/nghttp2-$(NGHTTP2_VER)

Expand Down
6 changes: 3 additions & 3 deletions deps/objconv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ $(SRCCACHE)/objconv.zip: | $(SRCCACHE)
$(JLDOWNLOAD) $@ https://www.agner.org/optimize/objconv.zip

$(BUILDDIR)/objconv/source-extracted: $(SRCCACHE)/objconv.zip
-rm -r $(dir $@)
rm -rf $(dir $@)
mkdir -p $(BUILDDIR)
unzip -d $(dir $@) $<
cd $(dir $@) && unzip source.zip
Expand All @@ -21,10 +21,10 @@ $(eval $(call staged-install, \
BINFILE_INSTALL,$$(BUILDDIR)/objconv/objconv,,))

clean-objconv:
-rm $(BUILDDIR)/objconv/build-compiled $(build_depsbindir)/objconv
-rm -f $(BUILDDIR)/objconv/build-compiled $(build_depsbindir)/objconv

distclean-objconv:
-rm -rf $(SRCCACHE)/objconv.zip $(BUILDDIR)/objconv
rm -rf $(SRCCACHE)/objconv.zip $(BUILDDIR)/objconv


get-objconv: $(SRCCACHE)/objconv.zip
Expand Down
6 changes: 3 additions & 3 deletions deps/openblas.mk
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)libopenblas$$(OPENBLAS_LIBNAMESUFFIX).$$(SHLIB_EXT) $$(build_shlibdir)/libopenblas$$(OPENBLAS_LIBNAMESUFFIX).$$(SHLIB_EXT)))

clean-openblas:
-rm $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-compiled
-rm -f $(BUILDDIR)/$(OPENBLAS_SRC_DIR)/build-compiled
-$(MAKE) -C $(BUILDDIR)/$(OPENBLAS_SRC_DIR) clean


Expand Down Expand Up @@ -186,11 +186,11 @@ $(eval $(call staged-install, \
$$(INSTALL_NAME_CMD)liblapack.$$(SHLIB_EXT) $$(build_shlibdir)/liblapack.$$(SHLIB_EXT)))

clean-lapack:
-rm $(BUILDDIR)/lapack-$(LAPACK_VER)/build-compiled0 $(BUILDDIR)/lapack-$(LAPACK_VER)/build-compiled
-rm -f $(BUILDDIR)/lapack-$(LAPACK_VER)/build-compiled0 $(BUILDDIR)/lapack-$(LAPACK_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/lapack-$(LAPACK_VER) clean

distclean-lapack:
-rm -rf $(SRCCACHE)/lapack-$(LAPACK_VER).tgz $(BUILDDIR)/lapack-$(LAPACK_VER)
rm -rf $(SRCCACHE)/lapack-$(LAPACK_VER).tgz $(BUILDDIR)/lapack-$(LAPACK_VER)


get-lapack: $(SRCCACHE)/lapack-$(LAPACK_VER).tgz
Expand Down
2 changes: 1 addition & 1 deletion deps/openlibm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ $(eval $(call staged-install, \
$(INSTALL_NAME_CMD)libopenlibm.$(SHLIB_EXT) $(build_shlibdir)/libopenlibm.$(SHLIB_EXT)))

clean-openlibm:
-rm $(BUILDDIR)/$(OPENLIBM_SRC_DIR)/build-compiled $(build_libdir)/libopenlibm.a
-rm -f $(BUILDDIR)/$(OPENLIBM_SRC_DIR)/build-compiled $(build_libdir)/libopenlibm.a
-$(MAKE) -C $(BUILDDIR)/$(OPENLIBM_SRC_DIR) distclean $(OPENLIBM_FLAGS)


Expand Down
6 changes: 3 additions & 3 deletions deps/p7zip.mk
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ $(eval $(call staged-install, \
P7ZIP_INSTALL,,,))

clean-p7zip:
-rm $(BUILDDIR)/p7zip-$(P7ZIP_VER)/build-configured $(BUILDDIR)/p7zip-$(P7ZIP_VER)/build-compiled
-rm $(build_bindir)/7za
-rm -f $(BUILDDIR)/p7zip-$(P7ZIP_VER)/build-configured $(BUILDDIR)/p7zip-$(P7ZIP_VER)/build-compiled
-rm -f $(build_bindir)/7za
-$(MAKE) -C $(BUILDDIR)/p7zip-$(P7ZIP_VER) clean

distclean-p7zip:
-rm -rf $(SRCCACHE)/p7zip-$(P7ZIP_VER).tar.bz2 $(SRCCACHE)/p7zip-$(P7ZIP_VER) $(BUILDDIR)/p7zip-$(P7ZIP_VER)
rm -rf $(SRCCACHE)/p7zip-$(P7ZIP_VER).tar.bz2 $(SRCCACHE)/p7zip-$(P7ZIP_VER) $(BUILDDIR)/p7zip-$(P7ZIP_VER)


get-p7zip: $(SRCCACHE)/p7zip-$(P7ZIP_VER).tar.bz2
Expand Down
4 changes: 2 additions & 2 deletions deps/patchelf.mk
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ $(eval $(call staged-install, \
MAKE_INSTALL,$$(LIBTOOL_CCLD),,))

clean-patchelf:
-rm $(BUILDDIR)/patchelf-$(PATCHELF_VER)/build-configured \
-rm -f $(BUILDDIR)/patchelf-$(PATCHELF_VER)/build-configured \
$(BUILDDIR)/patchelf-$(PATCHELF_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/patchelf-$(PATCHELF_VER) clean

distclean-patchelf:
-rm -rf $(SRCCACHE)/patchelf-$(PATCHELF_VER).tar.bz2 \
rm -rf $(SRCCACHE)/patchelf-$(PATCHELF_VER).tar.bz2 \
$(SRCCACHE)/patchelf-$(PATCHELF_VER) \
$(BUILDDIR)/patchelf-$(PATCHELF_VER)

Expand Down
6 changes: 3 additions & 3 deletions deps/pcre.mk
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ endif
$(eval $(call staged-install, \
pcre,pcre2-$$(PCRE_VER), \
MAKE_INSTALL,$$(LIBTOOL_CCLD),, \
rm $$(build_shlibdir)/libpcre2-posix.* && \
rm -f $$(build_shlibdir)/libpcre2-posix.* && \
$$(INSTALL_NAME_CMD)libpcre2-8.$$(SHLIB_EXT) $$(build_shlibdir)/libpcre2-8.$$(SHLIB_EXT)))

clean-pcre:
-rm $(BUILDDIR)/pcre2-$(PCRE_VER)/build-configured $(BUILDDIR)/pcre2-$(PCRE_VER)/build-compiled
-rm -f $(BUILDDIR)/pcre2-$(PCRE_VER)/build-configured $(BUILDDIR)/pcre2-$(PCRE_VER)/build-compiled
-$(MAKE) -C $(BUILDDIR)/pcre2-$(PCRE_VER) clean

distclean-pcre:
-rm -rf $(SRCCACHE)/pcre2-$(PCRE_VER).tar.bz2 $(SRCCACHE)/pcre2-$(PCRE_VER) $(BUILDDIR)/pcre2-$(PCRE_VER)
rm -rf $(SRCCACHE)/pcre2-$(PCRE_VER).tar.bz2 $(SRCCACHE)/pcre2-$(PCRE_VER) $(BUILDDIR)/pcre2-$(PCRE_VER)


get-pcre: $(SRCCACHE)/pcre2-$(PCRE_VER).tar.bz2
Expand Down
2 changes: 1 addition & 1 deletion deps/tools/bb-install.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,5 @@ endef
define bb-uninstaller
uninstall-$(strip $1):
-cd $$(build_prefix) && rm -fv -- $$$$($$(TAR) -tzf $$(SRCCACHE)/$2.tar.gz | grep -v '/$$$$')
-rm $$(build_prefix)/manifest/$(strip $1)
-rm -f $$(build_prefix)/manifest/$(strip $1)
endef
8 changes: 4 additions & 4 deletions deps/tools/common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ endif

reinstall-$(strip $1):
+$$(MAKE) uninstall-$(strip $1)
-rm $$(build_staging)/$2.tgz
-rm -f $$(build_staging)/$2.tgz
+$$(MAKE) stage-$(strip $1)
+$$(MAKE) install-$(strip $1)

Expand All @@ -180,7 +180,7 @@ endef
define staged-uninstaller
uninstall-$(strip $1):
-cd $$(build_prefix) && rm -fv -- $$$$($$(TAR) -tzf $$(build_staging)/$2.tgz | grep -v '/$$$$')
-rm $$(build_prefix)/manifest/$(strip $1)
-rm -f $$(build_prefix)/manifest/$(strip $1)
endef


Expand Down Expand Up @@ -216,9 +216,9 @@ uninstall-$1:
ifeq ($$(BUILD_OS), WINNT)
-cmd //C rmdir $$(call mingw_to_dos,$3/$1,cd $3 &&)
else
-rm -r $3/$1
rm -rf $3/$1
endif
-rm $$(build_prefix)/manifest/$1
-rm -f $$(build_prefix)/manifest/$1
endef


Expand Down
4 changes: 2 additions & 2 deletions deps/tools/git-external.mk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ $$($2_SRC_FILE): | $$(SRCCACHE)
$$(JLDOWNLOAD) $$@ $$(call $2_TAR_URL,$$($2_SHA1))
$5/$$($2_SRC_DIR)/source-extracted: $$($2_SRC_FILE)
$$(JLCHECKSUM) $$<
-[ ! \( -e $$(dir $$@) -o -h $$(dir $$@) \) ] || rm -r $$(dir $$@)
-[ ! \( -e $$(dir $$@) -o -h $$(dir $$@) \) ] || rm -rf $$(dir $$@)
mkdir -p $$(dir $$@)
$(TAR) -C $$(dir $$@) --strip-components 1 -xf $$<
echo 1 > $$@
Expand All @@ -74,5 +74,5 @@ endif # DEPS_GIT

$$(build_prefix)/manifest/$1: $$(SRCDIR)/$1.version # make the manifest stale if the version file is touched (causing re-install for compliant targets)
distclean-$1:
-rm -rf $5/$$($2_SRC_DIR) $$($2_SRC_FILE) $$(BUILDDIR)/$$($2_SRC_DIR)
rm -rf $5/$$($2_SRC_DIR) $$($2_SRC_FILE) $$(BUILDDIR)/$$($2_SRC_DIR)
endef
2 changes: 1 addition & 1 deletion deps/tools/stdlib-external.mk
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $$(BUILDDIR)/$$($2_SRC_DIR)/build-compiled: $$(BUILDDIR)/$$($2_SRC_DIR)/source-e
echo 1 > $$@
$$(eval $$(call symlink_install,$1,$$$$($2_SRC_DIR),$$$$(build_datarootdir)/julia/stdlib/$$$$(VERSDIR)))
clean-$1:
-rm $$(BUILDDIR)/$$($2_SRC_DIR)/build-compiled
-rm -f $$(BUILDDIR)/$$($2_SRC_DIR)/build-compiled
get-$1: $$($2_SRC_FILE)
extract-$1: $$(BUILDDIR)/$$($2_SRC_DIR)/source-extracted
configure-$1: extract-$1
Expand Down
Loading

0 comments on commit 4b58679

Please sign in to comment.