Skip to content

Commit 6b71d2b

Browse files
committed
reorg makefile
1 parent 93c8fa1 commit 6b71d2b

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

Makefile

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ check-init:
7777
start-cli init-key; \
7878
fi
7979

80-
assets/synapse-admin: tmp/synapse-admin.tar.gz
81-
rm -rf assets/synapse-admin
82-
tar -xzvf tmp/synapse-admin.tar.gz -C assets
83-
84-
tmp/synapse-admin.tar.gz:
85-
mkdir -p tmp
86-
(cd tmp && curl --progress-bar -OL https://github.com/etkecc/synapse-admin/releases/download/$(SYNAPSE_ADMIN_VERSION)/synapse-admin.tar.gz)
87-
echo "$(SYNAPSE_ADMIN_CHECKSUM) tmp/synapse-admin.tar.gz" | shasum -a 256 -c
88-
8980
javascript/index.js: $(shell find startos -type f) tsconfig.json node_modules
9081
npm run build
9182

@@ -98,3 +89,15 @@ package-lock.json: package.json
9889
clean:
9990
@echo "Cleaning up build artifacts..."
10091
@rm -rf $(PACKAGE_ID).s9pk $(PACKAGE_ID)_x86_64.s9pk $(PACKAGE_ID)_aarch64.s9pk $(PACKAGE_ID)_riscv64.s9pk javascript assets/synapse-admin tmp node_modules
92+
93+
94+
# Custom recipes for synapse
95+
96+
assets/synapse-admin: tmp/synapse-admin.tar.gz
97+
rm -rf assets/synapse-admin
98+
tar -xzvf tmp/synapse-admin.tar.gz -C assets
99+
100+
tmp/synapse-admin.tar.gz:
101+
mkdir -p tmp
102+
(cd tmp && curl --progress-bar -OL https://github.com/etkecc/synapse-admin/releases/download/$(SYNAPSE_ADMIN_VERSION)/synapse-admin.tar.gz)
103+
echo "$(SYNAPSE_ADMIN_CHECKSUM) tmp/synapse-admin.tar.gz" | shasum -a 256 -c

0 commit comments

Comments
 (0)