37 lines
1.3 KiB
Makefile
37 lines
1.3 KiB
Makefile
# Copyright 2022 Mycroft AI Inc.
|
|
#
|
|
# This program is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# This program is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
.PHONY: dist install docker binaries
|
|
|
|
SHELL := bash
|
|
DOCKER_PLATFORM ?= linux/amd64
|
|
|
|
dist:
|
|
cd opentts-abc && python3 setup.py sdist
|
|
cd mimic3-tts && python3 setup.py sdist
|
|
cd mimic3-http && python3 setup.py sdist
|
|
mkdir -p dist
|
|
cp opentts-abc/dist/opentts_abc-*.tar.gz dist/
|
|
cp mimic3-tts/dist/mimic3_tts-*.tar.gz dist/
|
|
cp mimic3-http/dist/mimic3_http-*.tar.gz dist/
|
|
|
|
install:
|
|
./install.sh
|
|
|
|
docker:
|
|
docker buildx build . -f Dockerfile --platform $(DOCKER_PLATFORM) --tag mycroftai/mimic3 --load
|
|
|
|
binaries:
|
|
docker buildx build . -f Dockerfile.binary --platform $(DOCKER_PLATFORM) --output type=local,dest=dist/$(DOCKER_PLATFORM)
|