forked from JuliaLang/julia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract stdlib build tools to simplify usage with stdlibs other than …
…Pkg. Co-authored-by: Chris Foster <[email protected]> Co-authored-by: Fredrik Ekre <[email protected]>
- Loading branch information
1 parent
735d755
commit e353654
Showing
2 changed files
with
34 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Define a set of targets for downloading, caching, and building the source of | ||
# a stdlib library. The commit and git branch should be defined in a file | ||
# $stdlib_name.version in the current directory. See the git-external macro for | ||
# additional documentation. | ||
# | ||
# Parameters to the stdlib-external macro: | ||
# | ||
# $1 = stdlib_name | ||
# $2 = var_prefix (by convention, use upper cased stdlib_name) | ||
|
||
include $(JULIAHOME)/deps/tools/git-external.mk | ||
|
||
define stdlib-external | ||
|
||
$$(eval $$(call git-external,$1,$2,,,$$(BUILDDIR))) | ||
$$(BUILDDIR)/$$($2_SRC_DIR)/build-compiled: $$(BUILDDIR)/$$($2_SRC_DIR)/source-extracted | ||
@# no build steps | ||
echo 1 > $$@ | ||
$$(eval $$(call symlink_install,$1,$$$$($2_SRC_DIR),$$$$(build_datarootdir)/julia/stdlib/$$$$(VERSDIR))) | ||
clean-$1: | ||
-rm $$(BUILDDIR)/$$($2_SRC_DIR)/build-compiled | ||
get-$1: $$($2_SRC_FILE) | ||
extract-$1: $$(BUILDDIR)/$$($2_SRC_DIR)/source-extracted | ||
configure-$1: extract-$1 | ||
compile-$1: $$(BUILDDIR)/$$($2_SRC_DIR)/build-compiled | ||
|
||
endef |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters