synit/packaging/packages/synit-pid1/Makefile.external

15 lines
507 B
Makefile

# -*- makefile -*-
prepare: miniclean
$(MAKE) -C ../../../synit-pid1 $(ARCH)-binary-release
cp -p ../../../synit-pid1/target/$(ARCH)-*/release/synit-pid1 synit-pid1.$(ARCH)
(cd ../../../synit-pid1 && cargo metadata --format-version 1) | \
preserves-tool convert --output-format unquoted \
--select '. "packages" / [. "name" = "synit-pid1"] . "version"' > VERSION
(cd ../../../synit-pid1; ../packaging/gitversion) > GITVERSION
miniclean:
rm -f synit-pid1.$(ARCH)
clean: miniclean
rm -f VERSION