Build system defactor

This commit is contained in:
Emery Hemingway 2024-06-23 15:28:10 +03:00
parent 560a6417a3
commit af9058d217
3 changed files with 8 additions and 8 deletions

12
Tupfile
View file

@ -3,11 +3,11 @@ include_rules
: src/preserves.nim |> !nim-doc |>
run ./Tuprules.jq sbom.json
GROUP = &(BIN_DIR)/<preserves_encode>
GROUP = $(BIN_DIR)/<preserves_encode>
!link = |> ^o symlink %o^ ln -s preserves_encode %o |> | $(GROUP)
: {bin} |> !link |> &(BIN_DIR)/preserves-decode
: {bin} |> !link |> &(BIN_DIR)/preserves-from-json
: {bin} |> !link |> &(BIN_DIR)/preserves-from-xml
: {bin} |> !link |> &(BIN_DIR)/preserves-to-json
: {bin} |> !link |> &(BIN_DIR)/preserves-to-xml
: {bin} |> !link |> $(BIN_DIR)/preserves-decode
: {bin} |> !link |> $(BIN_DIR)/preserves-from-json
: {bin} |> !link |> $(BIN_DIR)/preserves-from-xml
: {bin} |> !link |> $(BIN_DIR)/preserves-to-json
: {bin} |> !link |> $(BIN_DIR)/preserves-to-xml

View file

@ -8,5 +8,5 @@ $props |
$props |
map( select(.name | .[0:8] == "nim:bin:") ) |
map( ": \($binDir)/\(.value).nim |> !nim_bin |> &(BIN_DIR)/\(.name[8:]) &(BIN_DIR)/<preserves> {bin}" ) |
map( ": \($binDir)/\(.value).nim |> !nim_bin |> $(BIN_DIR)/\(.name[8:]) $(BIN_DIR)/<preserves> {bin}" ) |
join("\n")

View file

@ -7,7 +7,7 @@
"bom-ref": "pkg:nim/preserves",
"name": "preserves",
"description": "data model and serialization format",
"version": "20240610",
"version": "20240623",
"authors": [
{
"name": "Emery Hemingway"