22 lines
731 B
Makefile
22 lines
731 B
Makefile
# -*- makefile -*-
|
|
|
|
prepare: syndicate-rs miniclean
|
|
$(MAKE) -C syndicate-rs $(ARCH)-binary-release
|
|
cp -p syndicate-rs/target/target.$(ARCH)/$(ARCH)-*/release/syndicate-server syndicate-server.$(ARCH)
|
|
(cd syndicate-rs/syndicate-server && cargo metadata --format-version 1) \
|
|
| preserves-tool convert --output-format unquoted \
|
|
--select '. "packages" / [. "name" = "syndicate-server"] . "version"' \
|
|
> VERSION
|
|
rsync -a syndicate-rs/syndicate-server/protocols .
|
|
(cd syndicate-rs; ../../../gitversion) > GITVERSION
|
|
|
|
syndicate-rs:
|
|
git clone https://git.syndicate-lang.org/syndicate-lang/syndicate-rs
|
|
|
|
miniclean:
|
|
rm -f syndicate-server.$(ARCH)
|
|
|
|
clean: miniclean
|
|
rm -rf syndicate-rs/target
|
|
rm -rf protocols
|
|
rm -f VERSION
|