Tcl Extension Architecture (TEA) Sample Extension

Check-in [13adaa3c2c]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Tweak to ensure we don't overwrite the real make.tcl
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | practcl
Files: files | file ages | folders
SHA1: 13adaa3c2cb88de5f1743cd86c31784aa271d033
User & Date: hypnotoad 2016-06-25 14:54:38
Context
2016-07-07
14:04
Certain dependencies are now expressed as a dependency not a trigger. This prevents a lot of duplication of already compiled code.

Simplified the makefile's handling of DESTDIR check-in: edee81275c user: hypnotoad tags: practcl

2016-06-25
14:54
Tweak to ensure we don't overwrite the real make.tcl check-in: 13adaa3c2c user: hypnotoad tags: practcl
14:53
Moving most of the heavy lifting for install into the make.tcl file

The Makefile is evoloving into an inert bit that just invokes make.tcl calls.

Added a local make.tcl to the directory which redirects to the real make.tcl file in the source folder check-in: 6f3945d120 user: hypnotoad tags: practcl

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to make.tcl.

80
81
82
83
84
85
86

87
88


89
90
91
92
93
94
95
}

if {$make(autoconf)} {
  #set mkout [open sample.mk w]
  #puts $mkout [::practcl::build::Makefile $::project(builddir) LIBRARY]
  #close $mkout
  LIBRARY generate-decls [LIBRARY define get name] $::project(builddir)

  set fout [open make.tcl w]
  puts $fout [list source [file join $::project(srcdir) make.tcl]]


}

if {$make(library)} {
  puts "BUILDING [LIBRARY define get libfile]"
  ::practcl::build::library [LIBRARY define get libfile] LIBRARY
}







>
|
|
>
>







80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
}

if {$make(autoconf)} {
  #set mkout [open sample.mk w]
  #puts $mkout [::practcl::build::Makefile $::project(builddir) LIBRARY]
  #close $mkout
  LIBRARY generate-decls [LIBRARY define get name] $::project(builddir)
  if {![file exists make.tcl]} {
    set fout [open make.tcl w]
    puts $fout [list source [file join $::project(srcdir) make.tcl]]
    close $fout
  }
}

if {$make(library)} {
  puts "BUILDING [LIBRARY define get libfile]"
  ::practcl::build::library [LIBRARY define get libfile] LIBRARY
}