Diff
Not logged in

Differences From Artifact [00ab01adef]:

To Artifact [0ae73d70a8]:


453
454
455
456
457
458
459
460

461
462
463
464
465
466

467
468
469
470
471
472
473
453
454
455
456
457
458
459

460
461
462
463
464
465

466
467
468
469
470
471
472
473







-
+





-
+







!endif


#---------------------------------------------------------------------
# Project specific targets
#---------------------------------------------------------------------

release:    setup $(TCLSH) $(TCLSTUBLIB) dlls pkgs
release:    setup $(TCLSH) $(TCLSTUBLIB) dlls libtclzip pkgs
core:	    setup $(TCLLIB) $(TCLSTUBLIB)
shell:	    setup $(TCLSH)
dlls:	    setup $(TCLREGLIB) $(TCLDDELIB) $(OUT_DIR)\zlib1.dll $(OUT_DIR)\libtommath.dll
all:	    setup $(TCLSH) $(TCLSTUBLIB) dlls pkgs
!if $(STATIC_BUILD) && $(TCL_USE_STATIC_PACKAGES)
sfe:        setup $(TCLSH) $(TCLSTUBLIB) $(TCLSFE)
sfe:        setup $(TCLSH) $(TCLSTUBLIB) libtclzip $(TCLSFE)
!else
sfe:
	    @echo Single file executables need static build of Tcl. Specify "static" and "staticpkg" in OPTS.
!endif

tcltest:    setup $(TCLTEST) dlls
install:    install-binaries install-libraries install-docs install-pkgs
607
608
609
610
611
612
613






614
615



616


617
618
619



620
621

622
623

624
625
626



627


628
629
630
631
632
633
634
607
608
609
610
611
612
613
614
615
616
617
618
619


620
621
622
623
624
625



626
627
628


629
630
631
632



633
634
635
636
637
638
639
640
641
642
643
644
645







+
+
+
+
+
+
-
-
+
+
+

+
+
-
-
-
+
+
+
-
-
+


+
-
-
-
+
+
+

+
+







	$(TCLSH) $(TOOLSDIR:\=/)/genStubs.tcl $(GENERICDIR:\=/) \
		$(GENERICDIR:\=/)/tclOO.decls
!endif

#---------------------------------------------------------------------
# Build a single file executable version of Tcl
#---------------------------------------------------------------------
LIBTCLVFS = $(OUT_DIR)\libtcl.vfs
!if "$(TCL_PATCH_LETTER)" == "."
LIBTCLZIP = libtcl_$(TCL_MAJOR_VERSION)_$(TCL_MINOR_VERSION)_$(TCL_RELEASE_SERIAL).zip
!else
LIBTCLZIP = libtcl_$(TCL_MAJOR_VERSION)_$(TCL_MINOR_VERSION)_$(TCL_PATCH_LETTER)$(TCL_RELEASE_SERIAL).zip
!endif
!if $(STATIC_BUILD) && $(TCL_USE_STATIC_PACKAGES)
$(OUT_DIR)\tcl_library.zip:

libtclzip: $(OUT_DIR)\$(LIBTCLZIP)
$(OUT_DIR)\$(LIBTCLZIP): .PHONY
	@echo Building Tcl library zip file
	@if exist "$(LIBTCLVFS)" $(RMDIR) "$(LIBTCLVFS)"
	@$(MKDIR) "$(LIBTCLVFS)"
	@echo file delete -force tcl_library > "$(OUT_DIR)\zipper.tcl"
	@echo file delete -force tcl_library.zip >> "$(OUT_DIR)\zipper.tcl"
	@echo file copy ../../library tcl_library >> "$(OUT_DIR)\zipper.tcl"
	@$(CPYDIR) $(LIBDIR) "$(LIBTCLVFS)\tcl_library"
	@move /y "$(LIBTCLVFS)\tcl_library\manifest.txt"  "$(LIBTCLVFS)\tcl_library\pkgIndex.tcl"
	@echo file delete -force {$@} > "$(OUT_DIR)\zipper.tcl"
	@echo file rename tcl_library/manifest.txt tcl_library/pkgIndex.tcl >> "$(OUT_DIR)\zipper.tcl"
	@echo zipfs mkzip {$@} tcl_library tcl_library >> "$(OUT_DIR)\zipper.tcl"
	@echo zipfs mkzip {$@} {$(LIBTCLVFS)} {$(LIBTCLVFS)} >> "$(OUT_DIR)\zipper.tcl"
	@cd "$(OUT_DIR)" && $(TCLSH) zipper.tcl

!if $(STATIC_BUILD) && $(TCL_USE_STATIC_PACKAGES)
$(TCLSFE): $(OUT_DIR)\tcl_library.zip
	@echo Building single-file exe from $(TCLSH) and $(OUT_DIR)\tcl_library.zip
	@copy /y /b "$(TCLSH)"+"$(OUT_DIR)\tcl_library.zip" "$@"
$(TCLSFE): $(OUT_DIR)\$(LIBTCLZIP)
	@echo Building single-file exe from $(TCLSH)
	@copy /y /b "$(TCLSH)"+"$(OUT_DIR)\$(LIBTCLZIP)" "$@"
!endif

.PHONY:


#---------------------------------------------------------------------
# Build the Windows HTML help file.
#---------------------------------------------------------------------

# NOTE: you can define HHC on the command-line to override this.