@@ -275,7 +275,7 @@ ifeq ($(BUNDLE_DEBUG_LIBS),1)
275
275
else
276
276
@$(MAKE) $(QUIET_MAKE) release
277
277
endif
278
- @for subdir in $(bindir) $(datarootdir)/julia/stdlib/$(VERSDIR) $(docdir) $(man1dir) $(includedir)/julia $(libdir) $(private_libdir) $(sysconfdir); do \
278
+ @for subdir in $(bindir) $(datarootdir)/julia/stdlib/$(VERSDIR) $(docdir) $(man1dir) $(includedir)/julia $(libdir) $(private_libdir) $(sysconfdir) $(libexecdir) ; do \
279
279
mkdir -p $(DESTDIR)$$subdir; \
280
280
done
281
281
@@ -293,6 +293,9 @@ endif
293
293
-$(INSTALL_M) $(build_bindir)/libopenlibm.dll.a $(DESTDIR)$(libdir)/
294
294
else
295
295
296
+ # Install `7z` into libexec/
297
+ $(INSTALL_M) $(build_bindir)/7z $(DESTDIR)$(libexecdir)/
298
+
296
299
# Copy over .dSYM directories directly for Darwin
297
300
ifneq ($(DARWIN_FRAMEWORK ) ,1)
298
301
ifeq ($(OS ) ,Darwin)
@@ -454,8 +457,6 @@ ifeq ($(OS), Darwin)
454
457
endif
455
458
456
459
ifeq ($(OS ) , WINNT)
457
- [ ! -d $(JULIAHOME)/dist-extras ] || ( cd $(JULIAHOME)/dist-extras && \
458
- cp 7z.exe 7z.dll libexpat-1.dll zlib1.dll $(BUILDROOT)/julia-$(JULIA_COMMIT)/bin )
459
460
cd $(BUILDROOT)/julia-$(JULIA_COMMIT)/bin && rm -f llvm* llc.exe lli.exe opt.exe LTO.dll bugpoint.exe macho-dump.exe
460
461
461
462
# create file listing for uninstall. note: must have Windows path separators and line endings.
@@ -465,7 +466,7 @@ ifeq ($(OS), WINNT)
465
466
cd $(BUILDROOT) && $(call spawn,$(JULIAHOME)/dist-extras/nsis/makensis.exe) -NOCD -DVersion=$(JULIA_VERSION) -DArch=$(ARCH) -DCommit=$(JULIA_COMMIT) -DJULIAHOME="$(call cygpath_w,$(JULIAHOME))" $(call cygpath_w,$(JULIAHOME)/contrib/windows/build-installer.nsi) | iconv -f latin1
466
467
467
468
# compress nsis installer and combine with 7zip self-extracting header
468
- cd $(BUILDROOT) && $(JULIAHOME)/dist-extras /7z a -mx=9 "julia-install-$(JULIA_COMMIT)-$(ARCH).7z" julia-installer.exe
469
+ cd $(BUILDROOT) && $(JULIAHOME)/usr/bin /7z a -mx=9 "julia-install-$(JULIA_COMMIT)-$(ARCH).7z" julia-installer.exe
469
470
cd $(BUILDROOT) && cat $(JULIAHOME)/contrib/windows/7zS.sfx $(JULIAHOME)/contrib/windows/7zSFX-config.txt "julia-install-$(JULIA_COMMIT)-$(ARCH).7z" > "$(JULIA_BINARYDIST_FILENAME).exe"
470
471
chmod a+x "$(BUILDROOT)/$(JULIA_BINARYDIST_FILENAME).exe"
471
472
-rm -f $(BUILDROOT)/julia-install-$(JULIA_COMMIT)-$(ARCH).7z
@@ -585,37 +586,12 @@ test-%: check-whitespace $(JULIA_BUILD_MODE)
585
586
# download target for some hardcoded windows dependencies
586
587
.PHONY : win-extras wine_path
587
588
win-extras :
588
- [ -d $( JULIAHOME) /dist-extras ] || mkdir $(JULIAHOME ) /dist-extras
589
- ifneq ($(BUILD_OS ) ,WINNT)
590
- ifeq (,$(findstring CYGWIN,$(BUILD_OS ) ) )
591
- cp /usr/lib/p7zip/7z /usr/lib/p7zip/7z.so $(JULIAHOME)/dist-extras
592
- endif
593
- endif
594
- ifneq (,$(filter $(ARCH ) , i386 i486 i586 i686) )
595
- cd $(JULIAHOME)/dist-extras && \
596
- $(JLDOWNLOAD) https://sourceforge.net/projects/sevenzip/files/7-Zip/19.00/7z1900.exe && \
597
- $(JLCHECKSUM) 7z1900.exe && \
598
- 7z x -y 7z1900.exe 7z.exe 7z.dll && \
599
- ../contrib/windows/winrpm.sh http://download.opensuse.org/repositories/windows:/mingw:/win32/openSUSE_Leap_42.2 \
600
- "mingw32-libexpat1 mingw32-zlib1" && \
601
- cp usr/i686-w64-mingw32/sys-root/mingw/bin/*.dll .
602
- else ifeq ($(ARCH),x86_64)
603
- cd $(JULIAHOME)/dist-extras && \
604
- $(JLDOWNLOAD) https://downloads.sourceforge.net/project/sevenzip/7-Zip/19.00/7z1900-x64.exe && \
605
- $(JLCHECKSUM) 7z1900-x64.exe && \
606
- 7z x -y 7z1900-x64.exe 7z.exe 7z.dll && \
607
- ../contrib/windows/winrpm.sh http://download.opensuse.org/repositories/windows:/mingw:/win64/openSUSE_Leap_42.2 \
608
- "mingw64-libexpat1 mingw64-zlib1" && \
609
- cp usr/x86_64-w64-mingw32/sys-root/mingw/bin/*.dll .
610
- else
611
- $(error no win-extras target for ARCH=$(ARCH))
612
- endif
589
+ @$(MAKE ) -C $(BUILDROOT ) /deps install-p7zip
590
+ mkdir -p $(JULIAHOME ) /dist-extras
613
591
cd $(JULIAHOME ) /dist-extras && \
614
592
$(JLDOWNLOAD ) https://sourceforge.net/projects/nsis/files/NSIS%203/3.04/nsis-3.04-setup.exe && \
615
593
$(JLCHECKSUM ) nsis-3.04-setup.exe && \
616
- chmod a+x 7z.exe && \
617
- chmod a+x 7z.dll && \
618
- $(call spawn,./7z.exe) x -y -onsis nsis-3.04-setup.exe && \
594
+ $(call spawn,$(JULIAHOME ) /usr/bin/7z.exe) x -y -onsis nsis-3.04-setup.exe && \
619
595
chmod a+x ./nsis/makensis.exe
620
596
621
597
# various statistics about the build that may interest the user
0 commit comments