26 lines
633 B
Plaintext
26 lines
633 B
Plaintext
include_rules
|
|
|
|
ifndef SCULPT_VERSION
|
|
error CONFIG_SCULPT_VERSION is undefined
|
|
endif
|
|
|
|
DEPOT_INDEX_FILE = $(DEPOT_DIR)/index/@(SCULPT_VERSION)
|
|
|
|
ifneq (@(DEPOT_USER),local)
|
|
: index.xml |> tup varsed %f - | xmllint - > %o |> $(DEPOT_INDEX_FILE) {index}
|
|
else
|
|
: $(DEPOT_DIR)/<runtimes> |> ^ generate index^ \
|
|
echo '<index>' > %o; \
|
|
echo %<runtimes> | tr ' ' '\n' | sort |\
|
|
sed \
|
|
-e 's|\.\./depot/| <pkg path="|' \
|
|
-e 's|runtime|"/>|' \
|
|
- >> %o; \
|
|
echo '</index>' >> %o |> $(DEPOT_INDEX_FILE) {index}
|
|
endif
|
|
|
|
ifdef DEPOT_KEY
|
|
: {index} |> xz -c %f > %o |> $(PUBLIC_DIR)/index/%b.xz {dist}
|
|
: {dist} |> !public_signature |>
|
|
endif
|